作者 lyh

gx

... ... @@ -129,8 +129,8 @@ class ProjectLogic extends BaseLogic
$this->fail('正式域名格式不正确');
}
}
DB::beginTransaction();
try {
// DB::beginTransaction();
// try {
if(!empty($param['payment']['amount'])) unset($param['payment']['amount']);
if(!empty($param['deploy_build']['test_domain'])) unset($param['deploy_build']['test_domain']);
if(!empty($param['deploy_build']['plan'])) unset($param['deploy_build']['plan']);
... ... @@ -144,12 +144,12 @@ class ProjectLogic extends BaseLogic
$this->savePayment($param);
$this->saveDeployBuild($param);
$this->saveDeployOptimize($param);
DB::commit();
}catch (\Exception $e){
DB::rollBack();
errorLog('项目保存失败', $param, $e);
$this->fail('保存失败');
}
// DB::commit();
// }catch (\Exception $e){
// DB::rollBack();
// errorLog('项目保存失败', $param, $e);
// $this->fail('保存失败');
// }
return $this->success();
}
... ...