作者 lyh

Merge branch 'develop' of http://47.244.231.31:8099/zhl/globalso-v6 into develop

@@ -173,8 +173,7 @@ class ServerConfigLogic extends BaseLogic @@ -173,8 +173,7 @@ class ServerConfigLogic extends BaseLogic
173 public function updateAllTable($param){ 173 public function updateAllTable($param){
174 DevopsTask::addTask($param['sql']); 174 DevopsTask::addTask($param['sql']);
175 //执行命令行 175 //执行命令行
176 - $process = new Process(['php', 'artisan', 'devops_task']);  
177 - $process->start(); 176 + Artisan::call('php artisan devops_task');
178 return $this->success(); 177 return $this->success();
179 } 178 }
180 } 179 }
@@ -259,28 +259,32 @@ class ProjectLogic extends BaseLogic @@ -259,28 +259,32 @@ class ProjectLogic extends BaseLogic
259 * @time :2023/9/12 11:20 259 * @time :2023/9/12 11:20
260 */ 260 */
261 public function setTypeSevenEdit($param){ 261 public function setTypeSevenEdit($param){
262 - //删除原始项目  
263 - $this->edit(['delete_status' => 1], ['id' => $param['id']]); 262 + $info = $this->model->read(['id'=>$param['id']]);
  263 +
  264 + if($info['delete_status'] == 0){
  265 + //删除原始项目
  266 + $this->edit(['delete_status' => 1], ['id' => $param['id']]);
264 267
265 - //添加到续费单  
266 - $data = [  
267 - 'title' => '【续费单】' . $param['title'],  
268 - 'company' => $param['company'],  
269 - 'lead_name' => $param['lead_name'],  
270 - 'mobile' => $param['mobile'],  
271 - 'qq' => $param['qq'],  
272 - 'channel' => json_encode($param['channel']),  
273 - 'requirement' => $param['requirement'],  
274 - 'cooperate_date' => $param['cooperate_date'],  
275 - 'service_duration' => $param['deploy_build']['service_duration'],  
276 - 'plan' => $param['deploy_build']['plan'], 268 + //添加到续费单
  269 + $data = [
  270 + 'title' => '【续费单】' . $param['title'],
  271 + 'company' => $param['company'],
  272 + 'lead_name' => $param['lead_name'],
  273 + 'mobile' => $param['mobile'],
  274 + 'qq' => $param['qq'],
  275 + 'channel' => json_encode($param['channel']),
  276 + 'requirement' => $param['requirement'],
  277 + 'cooperate_date' => $param['cooperate_date'],
  278 + 'service_duration' => $param['deploy_build']['service_duration'],
  279 + 'plan' => $param['deploy_build']['plan'],
277 // 'api_no' => $param['id'], //改手动填 280 // 'api_no' => $param['id'], //改手动填
278 - 'amount' => $param['payment']['amount'],  
279 - 'contract' => json_encode($param['payment']['contract']),  
280 - 'bill' => json_encode($param['payment']['bill']),  
281 - ];  
282 - $renewModel = new ProjectRenew();  
283 - $renewModel->add($data); 281 + 'amount' => $param['payment']['amount'],
  282 + 'contract' => json_encode($param['payment']['contract']),
  283 + 'bill' => json_encode($param['payment']['bill']),
  284 + ];
  285 + $renewModel = new ProjectRenew();
  286 + $renewModel->add($data);
  287 + }
284 288
285 return $this->success(); 289 return $this->success();
286 } 290 }