作者 lyh

gx

... ... @@ -135,8 +135,8 @@ class ProjectLogic extends BaseLogic
* @time :2023/8/17 14:19
*/
public function save($param){
DB::beginTransaction();
try {
// DB::beginTransaction();
// try {
if($param['type'] == 5){
$param['extend_type'] == 5;
unset($param['type']);
... ... @@ -148,12 +148,12 @@ class ProjectLogic extends BaseLogic
$this->saveDeployBuild($param);
$this->saveDeployOptimize($param);
$this->saveAfter($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();
}
... ...