正在显示
1 个修改的文件
包含
2 行增加
和
3 行删除
| @@ -229,9 +229,8 @@ class ProjectLogic extends BaseLogic | @@ -229,9 +229,8 @@ class ProjectLogic extends BaseLogic | ||
| 229 | } | 229 | } |
| 230 | $param['upload_config'] = json_encode($param['upload_config'] ?? []); | 230 | $param['upload_config'] = json_encode($param['upload_config'] ?? []); |
| 231 | $param['web_traffic_config'] = json_encode($param['web_traffic_config'] ?? []); | 231 | $param['web_traffic_config'] = json_encode($param['web_traffic_config'] ?? []); |
| 232 | - @file_put_contents(storage_path('logs/lyh_error.log'), var_export($param, true) . PHP_EOL, FILE_APPEND); | ||
| 233 | - $rs = $this->model->edit($param,['id'=>$param['id']]); | ||
| 234 | - @file_put_contents(storage_path('logs/lyh_error.log'), var_export($rs, true) . PHP_EOL, FILE_APPEND); | 232 | + unset($param['web_traffic_config'],$param['upload_config']); |
| 233 | + $this->model->edit($param,['id'=>$param['id']]); | ||
| 235 | Common::del_user_cache($this->model->getTable(),$param['id']); | 234 | Common::del_user_cache($this->model->getTable(),$param['id']); |
| 236 | return $this->success(); | 235 | return $this->success(); |
| 237 | } | 236 | } |
-
请 注册 或 登录 后发表评论