作者 lyh

gx

... ... @@ -91,8 +91,8 @@ class ProjectLogic extends BaseLogic
*/
public function projectSave(){
DB::beginTransaction();
try {
// DB::beginTransaction();
// try {
if($this->param['type'] == Project::TYPE_SEVEN){
//错误单直接返回,单独处理
$this->setTypeSevenEdit($this->param);
... ... @@ -110,11 +110,11 @@ class ProjectLogic extends BaseLogic
//保存售后信息
$this->saveProjectAfter($this->param['project_after']);
}
DB::commit();
}catch (\Exception $e){
DB::rollBack();
$this->fail('error');
}
// DB::commit();
// }catch (\Exception $e){
// DB::rollBack();
// $this->fail('error');
// }
return $this->success();
}
... ...