正在显示
1 个修改的文件
包含
5 行增加
和
3 行删除
| @@ -79,7 +79,8 @@ class RenewLogic extends BaseLogic | @@ -79,7 +79,8 @@ class RenewLogic extends BaseLogic | ||
| 79 | DB::beginTransaction(); | 79 | DB::beginTransaction(); |
| 80 | try { | 80 | try { |
| 81 | $this->model->edit(['project_id'=>$this->param['id'],'operator_id'=>$this->manager['id'],'status'=>1],['id'=>$this->param['renew_id']]); | 81 | $this->model->edit(['project_id'=>$this->param['id'],'operator_id'=>$this->manager['id'],'status'=>1],['id'=>$this->param['renew_id']]); |
| 82 | - $this->saveLog($this->param['renew_id'],$this->param['service_duration'],$this->param['plan'],$info['amount'],$info['api_no'],$this->param['id']); | 82 | + $this->saveLog($this->param['renew_id'],$this->param['service_duration'],$this->param['plan'], |
| 83 | + $info['amount'],$info['api_no'],$this->param['id'],$this->param['remark']); | ||
| 83 | $this->updateProject($this->param['id'],$this->param['type']); | 84 | $this->updateProject($this->param['id'],$this->param['type']); |
| 84 | $this->updateProjectBuild($this->param['id'],$this->param['service_duration'],$this->param['plan']); | 85 | $this->updateProjectBuild($this->param['id'],$this->param['service_duration'],$this->param['plan']); |
| 85 | DB::commit(); | 86 | DB::commit(); |
| @@ -112,7 +113,7 @@ class RenewLogic extends BaseLogic | @@ -112,7 +113,7 @@ class RenewLogic extends BaseLogic | ||
| 112 | * @method :post | 113 | * @method :post |
| 113 | * @time :2023/9/27 16:29 | 114 | * @time :2023/9/27 16:29 |
| 114 | */ | 115 | */ |
| 115 | - public function saveLog($renew_id,$service_duration,$plan,$amount,$api_no,$project_id){ | 116 | + public function saveLog($renew_id,$service_duration,$plan,$amount,$api_no,$project_id,$remark){ |
| 116 | $data = [ | 117 | $data = [ |
| 117 | 'renew_id'=>$renew_id, | 118 | 'renew_id'=>$renew_id, |
| 118 | 'service_duration'=>$service_duration, | 119 | 'service_duration'=>$service_duration, |
| @@ -120,7 +121,8 @@ class RenewLogic extends BaseLogic | @@ -120,7 +121,8 @@ class RenewLogic extends BaseLogic | ||
| 120 | 'amount'=>$amount, | 121 | 'amount'=>$amount, |
| 121 | 'api_no'=>$api_no, | 122 | 'api_no'=>$api_no, |
| 122 | 'project_id'=>$project_id, | 123 | 'project_id'=>$project_id, |
| 123 | - 'operator_id'=>$this->manager['id'] | 124 | + 'operator_id'=>$this->manager['id'], |
| 125 | + 'remark'=>$remark | ||
| 124 | ]; | 126 | ]; |
| 125 | $renewLogModel = new RenewLog(); | 127 | $renewLogModel = new RenewLog(); |
| 126 | return $renewLogModel->add($data); | 128 | return $renewLogModel->add($data); |
-
请 注册 或 登录 后发表评论