正在显示
1 个修改的文件
包含
1 行增加
和
2 行删除
| @@ -103,7 +103,7 @@ class ProjectLogic extends BaseLogic | @@ -103,7 +103,7 @@ class ProjectLogic extends BaseLogic | ||
| 103 | */ | 103 | */ |
| 104 | public function saveProject($param){ | 104 | public function saveProject($param){ |
| 105 | if($param['type'] == Project::TYPE_FIVE){ | 105 | if($param['type'] == Project::TYPE_FIVE){ |
| 106 | - $param['extend_type'] == Project::TYPE_FIVE; | 106 | + $param['extend_type'] = Project::TYPE_FIVE; |
| 107 | unset($param['type']); | 107 | unset($param['type']); |
| 108 | } | 108 | } |
| 109 | if(isset($param['level']) && !empty($param['level'])){ | 109 | if(isset($param['level']) && !empty($param['level'])){ |
| @@ -125,7 +125,6 @@ class ProjectLogic extends BaseLogic | @@ -125,7 +125,6 @@ class ProjectLogic extends BaseLogic | ||
| 125 | $param['confirm_file'] = Arr::a2s($param['confirm_file']); | 125 | $param['confirm_file'] = Arr::a2s($param['confirm_file']); |
| 126 | } | 126 | } |
| 127 | unset($param['payment'],$param['deploy_build'],$param['deploy_optimize'],$param['online_check'],$param['project_after']); | 127 | unset($param['payment'],$param['deploy_build'],$param['deploy_optimize'],$param['online_check'],$param['project_after']); |
| 128 | - @file_put_contents(storage_path('logs/lyh_error.log'), var_export($param, true) . PHP_EOL, FILE_APPEND); | ||
| 129 | $this->model->edit($param,['id'=>$param['id']]); | 128 | $this->model->edit($param,['id'=>$param['id']]); |
| 130 | Common::del_user_cache($this->model->getTable(),$param['id']); | 129 | Common::del_user_cache($this->model->getTable(),$param['id']); |
| 131 | return $this->success(); | 130 | return $this->success(); |
-
请 注册 或 登录 后发表评论