|
...
|
...
|
@@ -86,7 +86,7 @@ class RenewLogic extends BaseLogic |
|
|
|
$param['api_no'] = $info['api_no'] ?? 0;
|
|
|
|
$this->saveLog($param);
|
|
|
|
$this->updateProject($this->param['id'],$this->param['type']);
|
|
|
|
$this->updateProjectBuild($this->param['id'],$this->param['service_duration'],$this->param['plan']);
|
|
|
|
$this->updateProjectBuild($this->param['id'],$this->param['service_duration'] ?? 0,$this->param['plan']);
|
|
|
|
DB::commit();
|
|
|
|
}catch (\Exception $e){
|
|
|
|
DB::rollBack();
|
|
...
|
...
|
@@ -120,12 +120,12 @@ class RenewLogic extends BaseLogic |
|
|
|
public function saveLog($param){
|
|
|
|
$data = [
|
|
|
|
'renew_id'=>$param['renew_id'],
|
|
|
|
'service_duration'=>$param['service_duration'],
|
|
|
|
'service_duration'=>$param['service_duration'] ?? 0,
|
|
|
|
'plan'=>$param['plan'],
|
|
|
|
'old_plan'=>$param['old_plan'],
|
|
|
|
'type'=>$param['type'],
|
|
|
|
'old_type'=>$param['old_type'],
|
|
|
|
'amount'=>$param['amount'],
|
|
|
|
'amount'=>$param['amount'] ?? 0,
|
|
|
|
'api_no'=>$param['api_no'],
|
|
|
|
'project_id'=>$param['id'],
|
|
|
|
'operator_id'=>$this->manager['id'],
|
...
|
...
|
|