Merge branch 'master' of http://47.244.231.31:8099/zhl/globalso-v6
正在显示
1 个修改的文件
包含
1 行增加
和
4 行删除
| @@ -439,10 +439,7 @@ class ProjectLogic extends BaseLogic | @@ -439,10 +439,7 @@ class ProjectLogic extends BaseLogic | ||
| 439 | } | 439 | } |
| 440 | $param['upload_config'] = json_encode($param['upload_config'] ?? []); | 440 | $param['upload_config'] = json_encode($param['upload_config'] ?? []); |
| 441 | $param['web_traffic_config'] = json_encode($param['web_traffic_config'] ?? []); | 441 | $param['web_traffic_config'] = json_encode($param['web_traffic_config'] ?? []); |
| 442 | - $robots = $this->model->read(['id'=>$param['id']],['robots'])['robots']; | ||
| 443 | - if($robots == Project::TYPE_ONE){//开启 | ||
| 444 | - $param['robots'] = Project::TYPE_ONE; | ||
| 445 | - } | 442 | + unset($param['robots']);//项目不保存robots |
| 446 | $this->model->edit($param,['id'=>$param['id']]); | 443 | $this->model->edit($param,['id'=>$param['id']]); |
| 447 | Common::del_user_cache($this->model->getTable(),$param['id']); | 444 | Common::del_user_cache($this->model->getTable(),$param['id']); |
| 448 | return $this->success(); | 445 | return $this->success(); |
-
请 注册 或 登录 后发表评论