作者 lyh

gx

... ... @@ -37,11 +37,13 @@ class ProofreadingLogic extends BaseLogic
public function proofreadingSave(){
try {
//删除以前的数据
$this->model->del(['project_id'=>$this->user['project_id']]);
$this->model->del(['project_id'=>$this->user['project_id'],'language_id'=>$this->param['language_id'],'type'=>$this->param['type']]);
foreach ($this->param['data'] as $k => $v){
$v['created_at'] = date('Y-m-d H:i:s');
$v['updated_at'] = date('Y-m-d H:i:s');
$v['project_id'] = $this->user['project_id'];
$v['language_id'] = $this->param['language_id'];
$v['type'] = $this->param['type'];
$this->param['data'][$k] = $v;
}
//新增
... ...