作者 lyh

gx

@@ -49,8 +49,8 @@ class KeywordLogic extends BaseLogic @@ -49,8 +49,8 @@ class KeywordLogic extends BaseLogic
49 * @time :2023/8/23 16:50 49 * @time :2023/8/23 16:50
50 */ 50 */
51 public function keywordSave(){ 51 public function keywordSave(){
52 - DB::beginTransaction();  
53 - try { 52 +// DB::beginTransaction();
  53 +// try {
54 $this->param = $this->handleSaveParam($this->param); 54 $this->param = $this->handleSaveParam($this->param);
55 if(isset($this->param['id']) && !empty($this->param['id'])){ 55 if(isset($this->param['id']) && !empty($this->param['id'])){
56 $info = $this->model->read(['id'=>$this->param['id']],['id','route']); 56 $info = $this->model->read(['id'=>$this->param['id']],['id','route']);
@@ -67,11 +67,11 @@ class KeywordLogic extends BaseLogic @@ -67,11 +67,11 @@ class KeywordLogic extends BaseLogic
67 } 67 }
68 //清除缓存 68 //清除缓存
69 Common::del_user_cache('product_keyword',$this->user['project_id']); 69 Common::del_user_cache('product_keyword',$this->user['project_id']);
70 - DB::commit();  
71 - }catch (\Exception $e){  
72 - DB::rollBack();  
73 - $this->fail('保存失败');  
74 - } 70 +// DB::commit();
  71 +// }catch (\Exception $e){
  72 +// DB::rollBack();
  73 +// $this->fail('保存失败');
  74 +// }
75 //通知更新 75 //通知更新
76 $this->updateNotify(['project_id'=>$this->user['project_id'], 'type'=>RouteMap::SOURCE_PRODUCT_KEYWORD, 'route'=>$route]); 76 $this->updateNotify(['project_id'=>$this->user['project_id'], 'type'=>RouteMap::SOURCE_PRODUCT_KEYWORD, 'route'=>$route]);
77 return $this->success(); 77 return $this->success();