作者 lyh

gx

@@ -26,6 +26,7 @@ class NavLogic extends BaseLogic @@ -26,6 +26,7 @@ class NavLogic extends BaseLogic
26 $this->model = new BNav(); 26 $this->model = new BNav();
27 } 27 }
28 28
  29 +
29 /** 30 /**
30 * @remark :保存数据 31 * @remark :保存数据
31 * @name :navSave 32 * @name :navSave
@@ -38,8 +38,8 @@ class ProductLogic extends BaseLogic @@ -38,8 +38,8 @@ class ProductLogic extends BaseLogic
38 // $category_ids = $this->param['category_id'] ?? []; 38 // $category_ids = $this->param['category_id'] ?? [];
39 //参数处理 39 //参数处理
40 $this->param = $this->handleSaveParam($this->param); 40 $this->param = $this->handleSaveParam($this->param);
41 - DB::connection('custom_mysql')->beginTransaction();  
42 - try { 41 +// DB::connection('custom_mysql')->beginTransaction();
  42 +// try {
43 if(isset($this->param['id']) && !empty($this->param['id'])){ 43 if(isset($this->param['id']) && !empty($this->param['id'])){
44 //查看路由是否更新 44 //查看路由是否更新
45 $id = $this->editProductRoute($this->param['id'],$this->param['route']); 45 $id = $this->editProductRoute($this->param['id'],$this->param['route']);
@@ -55,11 +55,11 @@ class ProductLogic extends BaseLogic @@ -55,11 +55,11 @@ class ProductLogic extends BaseLogic
55 $this->model->edit(['route'=>$route],['id'=>$id]); 55 $this->model->edit(['route'=>$route],['id'=>$id]);
56 //产品分类关联 56 //产品分类关联
57 // CategoryRelated::saveRelated($id, $category_ids); 57 // CategoryRelated::saveRelated($id, $category_ids);
58 - DB::connection('custom_mysql')->commit();  
59 - }catch (\Exception $e){  
60 - DB::connection('custom_mysql')->rollBack();  
61 - $this->fail('系统错误请联系管理员');  
62 - } 58 +// DB::connection('custom_mysql')->commit();
  59 +// }catch (\Exception $e){
  60 +// DB::connection('custom_mysql')->rollBack();
  61 +// $this->fail('系统错误请联系管理员');
  62 +// }
63 //通知更新 63 //通知更新
64 $this->updateNotify(['project_id'=>$this->user['project_id'], 'type'=>RouteMap::SOURCE_PRODUCT, 'route'=>$route]); 64 $this->updateNotify(['project_id'=>$this->user['project_id'], 'type'=>RouteMap::SOURCE_PRODUCT, 'route'=>$route]);
65 return $this->success(); 65 return $this->success();