|
...
|
...
|
@@ -10,6 +10,7 @@ |
|
|
|
namespace App\Http\Logic\Aside\Template;
|
|
|
|
|
|
|
|
use App\Http\Logic\aside\BaseLogic;
|
|
|
|
use App\Http\Logic\Aside\Project\ProjectLogic;
|
|
|
|
use App\Models\CustomModule\CustomModule;
|
|
|
|
use App\Models\Template\BTemplate;
|
|
|
|
use App\Models\Template\Setting;
|
|
...
|
...
|
@@ -45,11 +46,13 @@ class ReplaceHtmlLogic extends BaseLogic |
|
|
|
if($typeInfo['is_custom'] == 1){//扩展模块
|
|
|
|
return $this->getCustomTemplateId($typeInfo,$template_id);
|
|
|
|
}
|
|
|
|
//获取当前项目详情
|
|
|
|
$projectInfo = (new ProjectLogic())->getProjectInfo($this->param['project_id']);
|
|
|
|
//查看当前页面是否为定制
|
|
|
|
if($this->user['is_customized'] == BTemplate::IS_VISUALIZATION) {//定制项目
|
|
|
|
if($projectInfo['is_customized'] == BTemplate::IS_VISUALIZATION) {//定制项目
|
|
|
|
$type = $this->getCustomizedType($typeInfo['source'], $typeInfo['is_list']);//获取定制界面类型
|
|
|
|
//查看当前页面是否定制,是否开启可视化
|
|
|
|
$page_array = (array)$this->user['is_visualization']->page_array;//获取所有定制界面
|
|
|
|
$page_array = (array)$projectInfo['is_visualization']->page_array;//获取所有定制界面
|
|
|
|
if (in_array($type, $page_array)) {//当前页面是定制界面
|
|
|
|
$template_id = 0;
|
|
|
|
}
|
...
|
...
|
|