正在显示
1 个修改的文件
包含
7 行增加
和
7 行删除
| @@ -136,10 +136,10 @@ class KeywordLogic extends BaseLogic | @@ -136,10 +136,10 @@ class KeywordLogic extends BaseLogic | ||
| 136 | * @time :2023/8/28 14:03 | 136 | * @time :2023/8/28 14:03 |
| 137 | */ | 137 | */ |
| 138 | public function batchAdd(){ | 138 | public function batchAdd(){ |
| 139 | - $route_array = Translate::tran($this->param['title'], 'en'); | ||
| 140 | - if (empty($route_array)) { | ||
| 141 | - $this->fail('路由生成失败,请稍后重试!'); | ||
| 142 | - } | 139 | +// $route_array = Translate::tran($this->param['title'], 'en'); |
| 140 | +// if (empty($route_array)) { | ||
| 141 | +// $this->fail('路由生成失败,请稍后重试!'); | ||
| 142 | +// } | ||
| 143 | try { | 143 | try { |
| 144 | foreach ($this->param['title'] as $k=>$v){ | 144 | foreach ($this->param['title'] as $k=>$v){ |
| 145 | if(empty($v)){ | 145 | if(empty($v)){ |
| @@ -153,9 +153,9 @@ class KeywordLogic extends BaseLogic | @@ -153,9 +153,9 @@ class KeywordLogic extends BaseLogic | ||
| 153 | $param['updated_at'] = $param['created_at']; | 153 | $param['updated_at'] = $param['created_at']; |
| 154 | $param['title'] = $v; | 154 | $param['title'] = $v; |
| 155 | $id = $this->model->insertGetId($param); | 155 | $id = $this->model->insertGetId($param); |
| 156 | - $route = RouteMap::setRoute($route_array[$k], RouteMap::SOURCE_PRODUCT_KEYWORD, $id, $this->user['project_id']); | ||
| 157 | -// $this->curlDelRoute(['new_route'=>$route]); | ||
| 158 | - $this->model->edit(['route'=>$route],['id'=>$id]); | 156 | +// $route = RouteMap::setRoute($route_array[$k], RouteMap::SOURCE_PRODUCT_KEYWORD, $id, $this->user['project_id']); |
| 157 | +//// $this->curlDelRoute(['new_route'=>$route]); | ||
| 158 | +// $this->model->edit(['route'=>$route],['id'=>$id]); | ||
| 159 | } | 159 | } |
| 160 | } | 160 | } |
| 161 | }catch (\Exception $e){ | 161 | }catch (\Exception $e){ |
-
请 注册 或 登录 后发表评论