|
...
|
...
|
@@ -149,8 +149,8 @@ class TranslateController extends BaseController |
|
|
|
case RouteMap::SOURCE_MODULE:
|
|
|
|
$customModel = new CustomModuleContent();
|
|
|
|
$contentInfo = $customModel->read(['id'=>$v['source_id']]);
|
|
|
|
if(!empty($contentInfo) && !empty(trim($contentInfo['category_id'],','))){
|
|
|
|
$categoryIdArr = explode(',',trim($contentInfo['category_id'],','));
|
|
|
|
if(!empty($contentInfo) && !empty($contentInfo['category_id'])){
|
|
|
|
$categoryIdArr = $contentInfo['category_id'];
|
|
|
|
$cate_id = (int)array_shift($categoryIdArr);
|
|
|
|
$routeInfo = $routeMapModel->read(['source'=>RouteMap::SOURCE_MODULE_CATE,'source_id'=>$cate_id]);
|
|
|
|
$v['path'] = $routeInfo['route'] ?? '';
|
|
...
|
...
|
@@ -213,8 +213,8 @@ class TranslateController extends BaseController |
|
|
|
case RouteMap::SOURCE_MODULE:
|
|
|
|
$customModel = new CustomModuleContent();
|
|
|
|
$contentInfo = $customModel->read(['id'=>$v['source_id']]);
|
|
|
|
if(!empty($contentInfo) && !empty(trim($contentInfo['category_id'],','))){
|
|
|
|
$categoryIdArr = explode(',',trim($contentInfo['category_id'],','));
|
|
|
|
if(!empty($contentInfo) && !empty($contentInfo['category_id'])){
|
|
|
|
$categoryIdArr = $contentInfo['category_id'];
|
|
|
|
$cate_id = (int)array_shift($categoryIdArr);
|
|
|
|
$routeInfo = $routeMapModel->read(['source'=>RouteMap::SOURCE_MODULE_CATE,'source_id'=>$cate_id]);
|
|
|
|
$v['path'] = $routeInfo['route'] ?? '';
|
...
|
...
|
|