作者 lyh

gx

@@ -94,15 +94,13 @@ class ProjectLogic extends BaseLogic @@ -94,15 +94,13 @@ class ProjectLogic extends BaseLogic
94 } 94 }
95 95
96 /** 96 /**
97 - * @remark :未续费项目单独保存 97 + * @remark :保存项目
98 * @name :setExtendType 98 * @name :setExtendType
99 * @author :lyh 99 * @author :lyh
100 * @method :post 100 * @method :post
101 * @time :2023/8/30 12:14 101 * @time :2023/8/30 12:14
102 */ 102 */
103 public function saveProject($param){ 103 public function saveProject($param){
104 -  
105 - //未续费项目  
106 if($param['type'] == Project::TYPE_FIVE){ 104 if($param['type'] == Project::TYPE_FIVE){
107 $param['extend_type'] == Project::TYPE_FIVE; 105 $param['extend_type'] == Project::TYPE_FIVE;
108 unset($param['type']); 106 unset($param['type']);
@@ -125,7 +123,7 @@ class ProjectLogic extends BaseLogic @@ -125,7 +123,7 @@ class ProjectLogic extends BaseLogic
125 } 123 }
126 $param['confirm_file'] = Arr::a2s($param['confirm_file']); 124 $param['confirm_file'] = Arr::a2s($param['confirm_file']);
127 } 125 }
128 - @file_put_contents(storage_path('logs/lyh_error.log'), var_export($param, true) . PHP_EOL, FILE_APPEND); 126 + unset($param['payment'],$param['deploy_build'],$param['deploy_optimize'],$param['online_check'],$param['project_after']);
129 $this->model->edit($param,['id'=>$param['id']]); 127 $this->model->edit($param,['id'=>$param['id']]);
130 Common::del_user_cache($this->model->getTable(),$param['id']); 128 Common::del_user_cache($this->model->getTable(),$param['id']);
131 return $this->success(); 129 return $this->success();