|
...
|
...
|
@@ -312,7 +312,7 @@ class TranslateLogic extends BaseLogic |
|
|
|
* @time :2024/5/17 15:11
|
|
|
|
*/
|
|
|
|
public function getRouteSource($route){
|
|
|
|
$data = ['source'=>0,'source_id'=>0,'is_list'=>0,'is_custom'=>0];
|
|
|
|
$data = ['source'=>0,'source_id'=>0,'is_list'=>0,'is_custom'=>0,'page'=>0];
|
|
|
|
if(strtolower($route) == 'all'){
|
|
|
|
return $this->success($data);
|
|
|
|
}
|
|
...
|
...
|
@@ -321,12 +321,20 @@ class TranslateLogic extends BaseLogic |
|
|
|
return $this->success($data);
|
|
|
|
}
|
|
|
|
$route = basename($route);
|
|
|
|
$page = 0;
|
|
|
|
if (is_numeric($route)) {
|
|
|
|
$arr = explode('/',$route);
|
|
|
|
$page = $arr[1];
|
|
|
|
$route = $arr[1];
|
|
|
|
}
|
|
|
|
$routeModel = new RouteMap();
|
|
|
|
$routeInfo = $routeModel->read(['route'=>$route]);
|
|
|
|
if($routeInfo === false){
|
|
|
|
return $data;
|
|
|
|
}
|
|
|
|
return $this->resultData($routeInfo,$data);
|
|
|
|
$data = $this->resultData($routeInfo,$data);
|
|
|
|
$data['page'] = $page;
|
|
|
|
return $data;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
...
|
...
|
|