正在显示
1 个修改的文件
包含
8 行增加
和
0 行删除
| @@ -32,6 +32,9 @@ class CustomModuleCategoryController extends BaseController | @@ -32,6 +32,9 @@ class CustomModuleCategoryController extends BaseController | ||
| 32 | ],[ | 32 | ],[ |
| 33 | 'module_id.required' => 'module_id不能为空', | 33 | 'module_id.required' => 'module_id不能为空', |
| 34 | ]); | 34 | ]); |
| 35 | + //获取模块路由 | ||
| 36 | + $customModuleModel = new CustomModule(); | ||
| 37 | + $moduleInfo = $customModuleModel->read(['id'=>$this->param['module_id']]); | ||
| 35 | $this->map['project_id'] = $this->user['project_id']; | 38 | $this->map['project_id'] = $this->user['project_id']; |
| 36 | $this->map['status'] = 0; | 39 | $this->map['status'] = 0; |
| 37 | $list = $customModuleCategory->list($this->map,'sort'); | 40 | $list = $customModuleCategory->list($this->map,'sort'); |
| @@ -40,6 +43,11 @@ class CustomModuleCategoryController extends BaseController | @@ -40,6 +43,11 @@ class CustomModuleCategoryController extends BaseController | ||
| 40 | foreach ($list as $k => $v){ | 43 | foreach ($list as $k => $v){ |
| 41 | $v['is_renovation'] = $this->getIsRenovation($v['module_id'],BTemplate::IS_LIST,$template_id,$v['id'],BTemplate::IS_CUSTOM); | 44 | $v['is_renovation'] = $this->getIsRenovation($v['module_id'],BTemplate::IS_LIST,$template_id,$v['id'],BTemplate::IS_CUSTOM); |
| 42 | $v['url'] = $this->user['domain'].$v['route']; | 45 | $v['url'] = $this->user['domain'].$v['route']; |
| 46 | + if($this->user['is_upgrade'] == 1){ | ||
| 47 | + if($v['route'] == $moduleInfo['route']){ | ||
| 48 | + $v['url'] = $this->user['domain'].$moduleInfo['route']."_catalog/".$v['route']; | ||
| 49 | + } | ||
| 50 | + } | ||
| 43 | $list[$k] = $v; | 51 | $list[$k] = $v; |
| 44 | } | 52 | } |
| 45 | } | 53 | } |
-
请 注册 或 登录 后发表评论