正在显示
3 个修改的文件
包含
4 行增加
和
6 行删除
| @@ -213,8 +213,7 @@ class ProjectController extends BaseController | @@ -213,8 +213,7 @@ class ProjectController extends BaseController | ||
| 213 | public function save(ProjectRequest $request, ProjectLogic $logic) | 213 | public function save(ProjectRequest $request, ProjectLogic $logic) |
| 214 | { | 214 | { |
| 215 | $request->validated(); | 215 | $request->validated(); |
| 216 | - $rs = $logic->projectSave(); | ||
| 217 | - return $rs; | 216 | + $logic->projectSave(); |
| 218 | $this->response('success'); | 217 | $this->response('success'); |
| 219 | } | 218 | } |
| 220 | 219 |
| @@ -80,8 +80,7 @@ class ProjectLogic extends BaseLogic | @@ -80,8 +80,7 @@ class ProjectLogic extends BaseLogic | ||
| 80 | // try { | 80 | // try { |
| 81 | $this->createProjectData($this->param); | 81 | $this->createProjectData($this->param); |
| 82 | //保存项目信息 | 82 | //保存项目信息 |
| 83 | - $rs = $this->saveProject($this->param); | ||
| 84 | - return $rs; | 83 | + $this->saveProject($this->param); |
| 85 | //保存建站部署信息 | 84 | //保存建站部署信息 |
| 86 | $this->saveProjectDeployBuild($this->param['deploy_build']); | 85 | $this->saveProjectDeployBuild($this->param['deploy_build']); |
| 87 | //保存付费信息 | 86 | //保存付费信息 |
| @@ -128,8 +127,7 @@ class ProjectLogic extends BaseLogic | @@ -128,8 +127,7 @@ class ProjectLogic extends BaseLogic | ||
| 128 | } | 127 | } |
| 129 | $param['confirm_file'] = Arr::a2s($param['confirm_file']); | 128 | $param['confirm_file'] = Arr::a2s($param['confirm_file']); |
| 130 | } | 129 | } |
| 131 | - $rs = $this->model->edit($param,['id'=>$param['id']]); | ||
| 132 | - return $rs; | 130 | + $this->model->edit($param,['id'=>$param['id']]); |
| 133 | Common::del_user_cache($this->model->getTable(),$param['id']); | 131 | Common::del_user_cache($this->model->getTable(),$param['id']); |
| 134 | return $this->success(); | 132 | return $this->success(); |
| 135 | } | 133 | } |
| @@ -124,6 +124,7 @@ class Base extends Model | @@ -124,6 +124,7 @@ class Base extends Model | ||
| 124 | $query = $this->formatQuery($condition); | 124 | $query = $this->formatQuery($condition); |
| 125 | $data['updated_at'] = date('Y-m-d H:i:s'); | 125 | $data['updated_at'] = date('Y-m-d H:i:s'); |
| 126 | $filLabelData = Arr::only($data, $this->getFillable()); | 126 | $filLabelData = Arr::only($data, $this->getFillable()); |
| 127 | + file_put_contents(storage_path('logs/lyh_error.log'), var_export($filLabelData, true) . PHP_EOL, FILE_APPEND) | ||
| 127 | return $query->update($filLabelData); | 128 | return $query->update($filLabelData); |
| 128 | 129 | ||
| 129 | } | 130 | } |
-
请 注册 或 登录 后发表评论