|
...
|
...
|
@@ -75,6 +75,7 @@ class RenewLogic extends BaseLogic |
|
|
|
if($info['project_id'] != 0){
|
|
|
|
$this->fail('当前续费单已关联项目,请重新选择');
|
|
|
|
}
|
|
|
|
DB::beginTransaction();
|
|
|
|
try {
|
|
|
|
$this->model->edit(['project_id'=>$this->param['id'],'operator_id'=>$this->manager['id']],['id'=>$this->param['renew_id']]);
|
|
|
|
$project = new Project();
|
|
...
|
...
|
@@ -83,7 +84,9 @@ class RenewLogic extends BaseLogic |
|
|
|
$deployBuild->edit(
|
|
|
|
['service_duration'=>DB::raw('service_duration + ' . $info['service_duration']),
|
|
|
|
'plan'=>$info['plan']], ['project_id'=>$this->param['id']]);
|
|
|
|
DB::commit();
|
|
|
|
}catch (\Exception $e){
|
|
|
|
DB::rollBack();
|
|
|
|
$this->fail('系统错误,请联系管理员');
|
|
|
|
}
|
|
|
|
return $this->success();
|
...
|
...
|
|