作者 lyh

gx

... ... @@ -134,8 +134,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']);
... ... @@ -147,12 +147,12 @@ class ProjectLogic extends BaseLogic
$this->saveDeployOptimize($param);
$this->saveAfter($param);
Common::del_user_cache($this->model,$res['id']);
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();
}
... ...