|
...
|
...
|
@@ -79,7 +79,8 @@ class RenewLogic extends BaseLogic |
|
|
|
DB::beginTransaction();
|
|
|
|
try {
|
|
|
|
$this->model->edit(['project_id'=>$this->param['id'],'operator_id'=>$this->manager['id'],'status'=>1],['id'=>$this->param['renew_id']]);
|
|
|
|
$this->saveLog($this->param['renew_id'],$this->param['service_duration'],$this->param['plan'],$info['amount'],$info['api_no'],$this->param['id']);
|
|
|
|
$this->saveLog($this->param['renew_id'],$this->param['service_duration'],$this->param['plan'],
|
|
|
|
$info['amount'],$info['api_no'],$this->param['id'],$this->param['remark']);
|
|
|
|
$this->updateProject($this->param['id'],$this->param['type']);
|
|
|
|
$this->updateProjectBuild($this->param['id'],$this->param['service_duration'],$this->param['plan']);
|
|
|
|
DB::commit();
|
|
...
|
...
|
@@ -112,7 +113,7 @@ class RenewLogic extends BaseLogic |
|
|
|
* @method :post
|
|
|
|
* @time :2023/9/27 16:29
|
|
|
|
*/
|
|
|
|
public function saveLog($renew_id,$service_duration,$plan,$amount,$api_no,$project_id){
|
|
|
|
public function saveLog($renew_id,$service_duration,$plan,$amount,$api_no,$project_id,$remark){
|
|
|
|
$data = [
|
|
|
|
'renew_id'=>$renew_id,
|
|
|
|
'service_duration'=>$service_duration,
|
|
...
|
...
|
@@ -120,7 +121,8 @@ class RenewLogic extends BaseLogic |
|
|
|
'amount'=>$amount,
|
|
|
|
'api_no'=>$api_no,
|
|
|
|
'project_id'=>$project_id,
|
|
|
|
'operator_id'=>$this->manager['id']
|
|
|
|
'operator_id'=>$this->manager['id'],
|
|
|
|
'remark'=>$remark
|
|
|
|
];
|
|
|
|
$renewLogModel = new RenewLog();
|
|
|
|
return $renewLogModel->add($data);
|
...
|
...
|
|