|
...
|
...
|
@@ -98,7 +98,11 @@ class UpdateRoute extends Command |
|
|
|
* @time :2023/11/21 18:48
|
|
|
|
*/
|
|
|
|
public function productRoute($route,$id,$i = 0){
|
|
|
|
if($i == 0){
|
|
|
|
$routes = $route.'-product';
|
|
|
|
}else{
|
|
|
|
$routes = $route.'-'.$i.'-product';
|
|
|
|
}
|
|
|
|
$routeMapModel = new RouteMap();
|
|
|
|
$routeInfo = $routeMapModel->read(['route'=>$routes,'id'=>['!=',$id]]);
|
|
|
|
if($routeInfo === false){
|
...
|
...
|
|