作者 lyh

gx

@@ -101,8 +101,9 @@ class UpdateRoute extends Command @@ -101,8 +101,9 @@ class UpdateRoute extends Command
101 if(!empty($v['route'])){ 101 if(!empty($v['route'])){
102 $tag = "-tag"; 102 $tag = "-tag";
103 if (!(substr($v['route'], -strlen($tag)) === $tag)) { 103 if (!(substr($v['route'], -strlen($tag)) === $tag)) {
104 - $route = Translate::tran($v['route'], 'en').$tag; 104 +// $route = Translate::tran($v['route'], 'en').$tag;
105 // 如果不是以 '-tag' 结尾,则拼接上 '-tag' 105 // 如果不是以 '-tag' 结尾,则拼接上 '-tag'
  106 + $route = $v['route'].$tag;
106 $route = RouteMap::setRoute($route, RouteMap::SOURCE_PRODUCT_KEYWORD, $v['id'], $v['project_id']); 107 $route = RouteMap::setRoute($route, RouteMap::SOURCE_PRODUCT_KEYWORD, $v['id'], $v['project_id']);
107 $keywordModel->edit(['route'=>$route],['id'=>$v['id']]); 108 $keywordModel->edit(['route'=>$route],['id'=>$v['id']]);
108 } 109 }