作者 lyh

gx

@@ -53,8 +53,8 @@ class ProductLogic extends BaseLogic @@ -53,8 +53,8 @@ class ProductLogic extends BaseLogic
53 }else{ 53 }else{
54 $this->param['category_id'] = ''; 54 $this->param['category_id'] = '';
55 } 55 }
56 - DB::connection('custom_mysql')->beginTransaction();  
57 - try { 56 +// DB::connection('custom_mysql')->beginTransaction();
  57 +// try {
58 if(isset($this->param['id']) && !empty($this->param['id'])){ 58 if(isset($this->param['id']) && !empty($this->param['id'])){
59 $this->param['route'] = RouteMap::setRoute($this->param['route'], RouteMap::SOURCE_PRODUCT, $this->param['id'], $this->user['project_id']); 59 $this->param['route'] = RouteMap::setRoute($this->param['route'], RouteMap::SOURCE_PRODUCT, $this->param['id'], $this->user['project_id']);
60 //查看路由是否更新 60 //查看路由是否更新
@@ -71,11 +71,11 @@ class ProductLogic extends BaseLogic @@ -71,11 +71,11 @@ class ProductLogic extends BaseLogic
71 CategoryRelated::saveRelated($id, $category_ids); 71 CategoryRelated::saveRelated($id, $category_ids);
72 //保存扩展字段 72 //保存扩展字段
73 $this->saveExtendInfo($id,$extend); 73 $this->saveExtendInfo($id,$extend);
74 - DB::connection('custom_mysql')->commit();  
75 - }catch (\Exception $e){  
76 - DB::connection('custom_mysql')->rollBack();  
77 - $this->fail('系统错误请联系管理员');  
78 - } 74 +// DB::connection('custom_mysql')->commit();
  75 +// }catch (\Exception $e){
  76 +// DB::connection('custom_mysql')->rollBack();
  77 +// $this->fail('系统错误请联系管理员');
  78 +// }
79 return $this->success(); 79 return $this->success();
80 } 80 }
81 81