作者 lyh

gx

@@ -103,8 +103,8 @@ class KeywordLogic extends BaseLogic @@ -103,8 +103,8 @@ class KeywordLogic extends BaseLogic
103 */ 103 */
104 public function keywordDelete(){ 104 public function keywordDelete(){
105 $ids = $this->param['ids']; 105 $ids = $this->param['ids'];
106 - DB::beginTransaction();  
107 - try { 106 +// DB::beginTransaction();
  107 +// try {
108 $productModel = new Product(); 108 $productModel = new Product();
109 foreach ($ids as $id){ 109 foreach ($ids as $id){
110 $product_info = $productModel->read(['category_id'=>['like','%,'.$id.',%']]); 110 $product_info = $productModel->read(['category_id'=>['like','%,'.$id.',%']]);
@@ -114,11 +114,11 @@ class KeywordLogic extends BaseLogic @@ -114,11 +114,11 @@ class KeywordLogic extends BaseLogic
114 RouteMap::delRoute(RouteMap::SOURCE_PRODUCT_KEYWORD, $id, $this->user['project_id']); 114 RouteMap::delRoute(RouteMap::SOURCE_PRODUCT_KEYWORD, $id, $this->user['project_id']);
115 } 115 }
116 $this->model->del(['id'=>['in',$ids]]); 116 $this->model->del(['id'=>['in',$ids]]);
117 - DB::commit();  
118 - }catch (\Exception $e){  
119 - DB::rollBack();  
120 - $this->fail('删除失败');  
121 - } 117 +// DB::commit();
  118 +// }catch (\Exception $e){
  119 +// DB::rollBack();
  120 +// $this->fail('删除失败');
  121 +// }
122 return $this->success(); 122 return $this->success();
123 } 123 }
124 124