正在显示
1 个修改的文件
包含
5 行增加
和
2 行删除
| @@ -10,6 +10,7 @@ | @@ -10,6 +10,7 @@ | ||
| 10 | namespace App\Http\Logic\Aside\Template; | 10 | namespace App\Http\Logic\Aside\Template; |
| 11 | 11 | ||
| 12 | use App\Http\Logic\aside\BaseLogic; | 12 | use App\Http\Logic\aside\BaseLogic; |
| 13 | +use App\Http\Logic\Aside\Project\ProjectLogic; | ||
| 13 | use App\Models\CustomModule\CustomModule; | 14 | use App\Models\CustomModule\CustomModule; |
| 14 | use App\Models\Template\BTemplate; | 15 | use App\Models\Template\BTemplate; |
| 15 | use App\Models\Template\Setting; | 16 | use App\Models\Template\Setting; |
| @@ -45,11 +46,13 @@ class ReplaceHtmlLogic extends BaseLogic | @@ -45,11 +46,13 @@ class ReplaceHtmlLogic extends BaseLogic | ||
| 45 | if($typeInfo['is_custom'] == 1){//扩展模块 | 46 | if($typeInfo['is_custom'] == 1){//扩展模块 |
| 46 | return $this->getCustomTemplateId($typeInfo,$template_id); | 47 | return $this->getCustomTemplateId($typeInfo,$template_id); |
| 47 | } | 48 | } |
| 49 | + //获取当前项目详情 | ||
| 50 | + $projectInfo = (new ProjectLogic())->getProjectInfo($this->param['project_id']); | ||
| 48 | //查看当前页面是否为定制 | 51 | //查看当前页面是否为定制 |
| 49 | - if($this->user['is_customized'] == BTemplate::IS_VISUALIZATION) {//定制项目 | 52 | + if($projectInfo['is_customized'] == BTemplate::IS_VISUALIZATION) {//定制项目 |
| 50 | $type = $this->getCustomizedType($typeInfo['source'], $typeInfo['is_list']);//获取定制界面类型 | 53 | $type = $this->getCustomizedType($typeInfo['source'], $typeInfo['is_list']);//获取定制界面类型 |
| 51 | //查看当前页面是否定制,是否开启可视化 | 54 | //查看当前页面是否定制,是否开启可视化 |
| 52 | - $page_array = (array)$this->user['is_visualization']->page_array;//获取所有定制界面 | 55 | + $page_array = (array)$projectInfo['is_visualization']->page_array;//获取所有定制界面 |
| 53 | if (in_array($type, $page_array)) {//当前页面是定制界面 | 56 | if (in_array($type, $page_array)) {//当前页面是定制界面 |
| 54 | $template_id = 0; | 57 | $template_id = 0; |
| 55 | } | 58 | } |
-
请 注册 或 登录 后发表评论