|
...
|
...
|
@@ -162,7 +162,7 @@ class UpdateRoute extends Command |
|
|
|
$productModel->edit(['project_id'=>$v['id']],['id'=>['!=',0]]);
|
|
|
|
$productLists = $productModel->list([],'id',['id','title','route']);
|
|
|
|
foreach ($productLists as $item){
|
|
|
|
$route = RouteMap::setRoute($item['title'],'product',$item['id'],$v['id']);
|
|
|
|
$route = RouteMap::setRoute($item['route'],'product',$item['id'],$v['id']);
|
|
|
|
$productModel->edit(['route'=>$route],['id'=>$item['id']]);
|
|
|
|
}
|
|
|
|
DB::disconnect('custom_mysql');
|
...
|
...
|
|