正在显示
1 个修改的文件
包含
1 行增加
和
26 行删除
| @@ -149,37 +149,12 @@ class KeywordLogic extends BaseLogic | @@ -149,37 +149,12 @@ class KeywordLogic extends BaseLogic | ||
| 149 | }catch (\Exception $e){ | 149 | }catch (\Exception $e){ |
| 150 | return false; | 150 | return false; |
| 151 | } | 151 | } |
| 152 | + Common::del_user_cache('product_keyword',$this->user['project_id']); | ||
| 152 | NoticeLog::createLog(NoticeLog::TYPE_INIT_KEYWORD, ['project_id' => $this->user['project_id']]); | 153 | NoticeLog::createLog(NoticeLog::TYPE_INIT_KEYWORD, ['project_id' => $this->user['project_id']]); |
| 153 | return $this->success(); | 154 | return $this->success(); |
| 154 | } | 155 | } |
| 155 | 156 | ||
| 156 | /** | 157 | /** |
| 157 | - * @remark : | ||
| 158 | - * @name :specialRouteCheck | ||
| 159 | - * @author :lyh | ||
| 160 | - * @method :post | ||
| 161 | - * @time :2024/1/6 14:50 | ||
| 162 | - */ | ||
| 163 | - public function specialRouteCheck($title) | ||
| 164 | - { | ||
| 165 | - if(preg_match('/[\x{4e00}-\x{9fa5}]/u', $title)){ | ||
| 166 | - $title = Translate::tran($title, 'en'); | ||
| 167 | - } | ||
| 168 | - $suffix = '-tag'; | ||
| 169 | - $i = 1; | ||
| 170 | - $sign = generateRoute($title); | ||
| 171 | - $route = $sign . $suffix; | ||
| 172 | - resetRoute: | ||
| 173 | - $log = RouteMap::getRouteInfo($route, $this->user['project_id']); | ||
| 174 | - if ($log) { | ||
| 175 | - $route = $sign .'-'.$i.$suffix; | ||
| 176 | - $i++; | ||
| 177 | - goto resetRoute; | ||
| 178 | - } | ||
| 179 | - return $route; | ||
| 180 | - } | ||
| 181 | - | ||
| 182 | - /** | ||
| 183 | * @remark :删除标签 | 158 | * @remark :删除标签 |
| 184 | * @name :keywordDelete | 159 | * @name :keywordDelete |
| 185 | * @author :lyh | 160 | * @author :lyh |
-
请 注册 或 登录 后发表评论