作者 lyh

gx

@@ -26,7 +26,7 @@ class ProofreadingController extends BaseController @@ -26,7 +26,7 @@ class ProofreadingController extends BaseController
26 * @time :2023/6/12 10:52 26 * @time :2023/6/12 10:52
27 */ 27 */
28 public function save(ProofreadingLogic $proofreadingLogic){ 28 public function save(ProofreadingLogic $proofreadingLogic){
29 - $rs = $proofreadingLogic->proofreadingSave(); 29 + $proofreadingLogic->proofreadingSave();
30 $this->response('success'); 30 $this->response('success');
31 } 31 }
32 32
@@ -32,7 +32,7 @@ class ProofreadingLogic extends BaseLogic @@ -32,7 +32,7 @@ class ProofreadingLogic extends BaseLogic
32 * @time :2023/6/12 11:03 32 * @time :2023/6/12 11:03
33 */ 33 */
34 public function proofreadingSave(){ 34 public function proofreadingSave(){
35 - try { 35 +// try {
36 //删除以前的数据 36 //删除以前的数据
37 $this->model->del(['project_id'=>$this->user['project_id']]); 37 $this->model->del(['project_id'=>$this->user['project_id']]);
38 foreach ($this->param['data'] as $k => $v){ 38 foreach ($this->param['data'] as $k => $v){
@@ -43,9 +43,9 @@ class ProofreadingLogic extends BaseLogic @@ -43,9 +43,9 @@ class ProofreadingLogic extends BaseLogic
43 } 43 }
44 //新增 44 //新增
45 $this->model->insert($this->param['data']); 45 $this->model->insert($this->param['data']);
46 - }catch (\Exception $e){  
47 - $this->fail('error');  
48 - } 46 +// }catch (\Exception $e){
  47 +// $this->fail('error');
  48 +// }
49 return $this->success(); 49 return $this->success();
50 } 50 }
51 } 51 }