作者 lyh

gx

... ... @@ -26,7 +26,7 @@ class ProofreadingController extends BaseController
* @time :2023/6/12 10:52
*/
public function save(ProofreadingLogic $proofreadingLogic){
$rs = $proofreadingLogic->proofreadingSave();
$proofreadingLogic->proofreadingSave();
$this->response('success');
}
... ...
... ... @@ -32,7 +32,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']]);
foreach ($this->param['data'] as $k => $v){
... ... @@ -43,9 +43,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();
}
}
... ...