正在显示
1 个修改的文件
包含
3 行增加
和
3 行删除
| @@ -86,7 +86,7 @@ class RenewLogic extends BaseLogic | @@ -86,7 +86,7 @@ class RenewLogic extends BaseLogic | ||
| 86 | $param['api_no'] = $info['api_no'] ?? 0; | 86 | $param['api_no'] = $info['api_no'] ?? 0; |
| 87 | $this->saveLog($param); | 87 | $this->saveLog($param); |
| 88 | $this->updateProject($this->param['id'],$this->param['type']); | 88 | $this->updateProject($this->param['id'],$this->param['type']); |
| 89 | - $this->updateProjectBuild($this->param['id'],$this->param['service_duration'],$this->param['plan']); | 89 | + $this->updateProjectBuild($this->param['id'],$this->param['service_duration'] ?? 0,$this->param['plan']); |
| 90 | DB::commit(); | 90 | DB::commit(); |
| 91 | }catch (\Exception $e){ | 91 | }catch (\Exception $e){ |
| 92 | DB::rollBack(); | 92 | DB::rollBack(); |
| @@ -120,12 +120,12 @@ class RenewLogic extends BaseLogic | @@ -120,12 +120,12 @@ class RenewLogic extends BaseLogic | ||
| 120 | public function saveLog($param){ | 120 | public function saveLog($param){ |
| 121 | $data = [ | 121 | $data = [ |
| 122 | 'renew_id'=>$param['renew_id'], | 122 | 'renew_id'=>$param['renew_id'], |
| 123 | - 'service_duration'=>$param['service_duration'], | 123 | + 'service_duration'=>$param['service_duration'] ?? 0, |
| 124 | 'plan'=>$param['plan'], | 124 | 'plan'=>$param['plan'], |
| 125 | 'old_plan'=>$param['old_plan'], | 125 | 'old_plan'=>$param['old_plan'], |
| 126 | 'type'=>$param['type'], | 126 | 'type'=>$param['type'], |
| 127 | 'old_type'=>$param['old_type'], | 127 | 'old_type'=>$param['old_type'], |
| 128 | - 'amount'=>$param['amount'], | 128 | + 'amount'=>$param['amount'] ?? 0, |
| 129 | 'api_no'=>$param['api_no'], | 129 | 'api_no'=>$param['api_no'], |
| 130 | 'project_id'=>$param['id'], | 130 | 'project_id'=>$param['id'], |
| 131 | 'operator_id'=>$this->manager['id'], | 131 | 'operator_id'=>$this->manager['id'], |
-
请 注册 或 登录 后发表评论