|
@@ -71,7 +71,7 @@ class KeywordLogic extends BaseLogic |
|
@@ -71,7 +71,7 @@ class KeywordLogic extends BaseLogic |
|
71
|
DB::commit();
|
71
|
DB::commit();
|
|
72
|
}catch (\Exception $e){
|
72
|
}catch (\Exception $e){
|
|
73
|
DB::rollBack();
|
73
|
DB::rollBack();
|
|
74
|
- $this->fail('保存失败');
|
74
|
+ $this->fail('保存失败,请连续管理员');
|
|
75
|
}
|
75
|
}
|
|
76
|
$this->addUpdateNotify(RouteMap::SOURCE_PRODUCT_KEYWORD,$route);
|
76
|
$this->addUpdateNotify(RouteMap::SOURCE_PRODUCT_KEYWORD,$route);
|
|
77
|
$this->curlDelRoute(['new_route'=>$route]);
|
77
|
$this->curlDelRoute(['new_route'=>$route]);
|
|
@@ -137,12 +137,12 @@ class KeywordLogic extends BaseLogic |
|
@@ -137,12 +137,12 @@ class KeywordLogic extends BaseLogic |
|
137
|
$param['title'] = $v;
|
137
|
$param['title'] = $v;
|
|
138
|
$id = $this->model->insertGetId($param);
|
138
|
$id = $this->model->insertGetId($param);
|
|
139
|
$route = RouteMap::setRoute($v, RouteMap::SOURCE_PRODUCT_KEYWORD, $id, $this->user['project_id']);
|
139
|
$route = RouteMap::setRoute($v, RouteMap::SOURCE_PRODUCT_KEYWORD, $id, $this->user['project_id']);
|
|
140
|
- $this->curlDelRoute(['new_route'=>$route]);
|
|
|
|
141
|
$this->model->edit(['route'=>$route],['id'=>$id]);
|
140
|
$this->model->edit(['route'=>$route],['id'=>$id]);
|
|
|
|
141
|
+// $this->curlDelRoute(['new_route'=>$route]);
|
|
142
|
}
|
142
|
}
|
|
143
|
}
|
143
|
}
|
|
144
|
}catch (\Exception $e){
|
144
|
}catch (\Exception $e){
|
|
145
|
- $this->fail('error');
|
145
|
+ $this->fail('保存失败,请联系管理员');
|
|
146
|
}
|
146
|
}
|
|
147
|
return $this->success();
|
147
|
return $this->success();
|
|
148
|
}
|
148
|
}
|
|
@@ -181,8 +181,8 @@ class KeywordLogic extends BaseLogic |
|
@@ -181,8 +181,8 @@ class KeywordLogic extends BaseLogic |
|
181
|
//删除路由映射
|
181
|
//删除路由映射
|
|
182
|
RouteMap::delRoute(RouteMap::SOURCE_PRODUCT_KEYWORD, $id, $this->user['project_id']);
|
182
|
RouteMap::delRoute(RouteMap::SOURCE_PRODUCT_KEYWORD, $id, $this->user['project_id']);
|
|
183
|
//生成一条删除路由记录
|
183
|
//生成一条删除路由记录
|
|
184
|
- $info = $this->model->read(['id'=>$id],['id','route']);
|
|
|
|
185
|
- $this->curlDelRoute(['route'=>$info['route']]);
|
184
|
+// $info = $this->model->read(['id'=>$id],['id','route']);
|
|
|
|
185
|
+// $this->curlDelRoute(['route'=>$info['route']]);
|
|
186
|
return $this->success();
|
186
|
return $this->success();
|
|
187
|
}
|
187
|
}
|
|
188
|
|
188
|
|