|
...
|
...
|
@@ -121,7 +121,7 @@ class KeywordLogic extends BaseLogic |
|
|
|
//批量生成路由
|
|
|
|
foreach ($idArr as $v){
|
|
|
|
$route = RouteMap::setRoute($v['title'], RouteMap::SOURCE_PRODUCT_KEYWORD, $v['id'], $this->user['project_id']);
|
|
|
|
$this->model->edit(['route'=>$route],['id'=>$id]);
|
|
|
|
$this->model->edit(['route'=>$route],['id'=>$v['id']]);
|
|
|
|
}
|
|
|
|
}catch (\Exception $e){
|
|
|
|
$this->fail('error');
|
...
|
...
|
|