作者 lyh

gx

... ... @@ -35,7 +35,7 @@ class ProofreadingLogic extends BaseLogic
* @time :2023/6/12 11:03
*/
public function proofreadingSave(){
try {
// try {
//删除以前的数据
$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){
... ... @@ -48,9 +48,9 @@ class ProofreadingLogic extends BaseLogic
}
//新增
$this->model->insert($this->param['data']);
}catch (\Exception $e){
$this->fail('error');
}
// }catch (\Exception $e){
// $this->fail('error');
// }
return $this->success();
}
... ...