作者 lyh

gx

@@ -35,7 +35,7 @@ class ProofreadingLogic extends BaseLogic @@ -35,7 +35,7 @@ class ProofreadingLogic extends BaseLogic
35 * @time :2023/6/12 11:03 35 * @time :2023/6/12 11:03
36 */ 36 */
37 public function proofreadingSave(){ 37 public function proofreadingSave(){
38 - try { 38 +// try {
39 //删除以前的数据 39 //删除以前的数据
40 $this->model->del(['project_id'=>$this->user['project_id'],'language_id'=>$this->param['language_id'],'type'=>$this->param['type']]); 40 $this->model->del(['project_id'=>$this->user['project_id'],'language_id'=>$this->param['language_id'],'type'=>$this->param['type']]);
41 foreach ($this->param['data'] as $k => $v){ 41 foreach ($this->param['data'] as $k => $v){
@@ -48,9 +48,9 @@ class ProofreadingLogic extends BaseLogic @@ -48,9 +48,9 @@ class ProofreadingLogic extends BaseLogic
48 } 48 }
49 //新增 49 //新增
50 $this->model->insert($this->param['data']); 50 $this->model->insert($this->param['data']);
51 - }catch (\Exception $e){  
52 - $this->fail('error');  
53 - } 51 +// }catch (\Exception $e){
  52 +// $this->fail('error');
  53 +// }
54 return $this->success(); 54 return $this->success();
55 } 55 }
56 56