作者 lyh

gx

@@ -68,11 +68,7 @@ class RenewLogic extends BaseLogic @@ -68,11 +68,7 @@ class RenewLogic extends BaseLogic
68 * @time :2023/9/19 10:21 68 * @time :2023/9/19 10:21
69 */ 69 */
70 public function editProjectRenew(){ 70 public function editProjectRenew(){
71 - if($this->param['renew_id'] == 0){  
72 - $info = [  
73 - 'api_no'=>0,  
74 - ];  
75 - }else{ 71 + if($this->param['renew_id'] != 0){
76 //获取续费单详情 72 //获取续费单详情
77 $info = $this->model->read(['id'=>$this->param['renew_id']]); 73 $info = $this->model->read(['id'=>$this->param['renew_id']]);
78 if($info === false){ 74 if($info === false){
@@ -86,7 +82,7 @@ class RenewLogic extends BaseLogic @@ -86,7 +82,7 @@ class RenewLogic extends BaseLogic
86 try { 82 try {
87 $this->model->edit(['project_id'=>$this->param['id'],'operator_id'=>$this->manager['id']],['id'=>$this->param['renew_id']]); 83 $this->model->edit(['project_id'=>$this->param['id'],'operator_id'=>$this->manager['id']],['id'=>$this->param['renew_id']]);
88 $param = $this->param; 84 $param = $this->param;
89 - $param['api_no'] = $info['api_no']; 85 + $param['api_no'] = $info['api_no'] ?? 0;
90 $this->saveLog($param); 86 $this->saveLog($param);
91 $this->updateProject($this->param['id'],$this->param['type']); 87 $this->updateProject($this->param['id'],$this->param['type']);
92 $this->updateProjectBuild($this->param['id'],$this->param['service_duration'],$this->param['plan']); 88 $this->updateProjectBuild($this->param['id'],$this->param['service_duration'],$this->param['plan']);