|
...
|
...
|
@@ -504,6 +504,7 @@ class BTemplateLogic extends BaseLogic |
|
|
|
public function saveTemplateCom($html,$template_id,$source,$is_list,$is_custom){
|
|
|
|
$typeArr = [BTemplate::COMMON_HEAD, BTemplate::COMMON_FOOTER, BTemplate::COMMON_OTHER];
|
|
|
|
$handleInfo = $this->handleCommonParam($html);
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($handleInfo, true) . PHP_EOL, FILE_APPEND);
|
|
|
|
$templateComModel = new BTemplateCom();
|
|
|
|
foreach ($typeArr as $type){
|
|
|
|
if($type == BTemplate::COMMON_HEAD){
|
|
...
|
...
|
@@ -572,7 +573,7 @@ class BTemplateLogic extends BaseLogic |
|
|
|
* @time :2023/10/21 17:29
|
|
|
|
*/
|
|
|
|
public function getType($source,$is_list,$is_custom = BTemplate::IS_NO_CUSTOM,$CommonType = BTemplate::COMMON_HEAD){
|
|
|
|
$type = BTemplate::SOURCE_COM;//首页公共头部底部
|
|
|
|
$type = BTemplate::SOURCE_COM;//公共头部底部
|
|
|
|
$is_head = $this->user['configuration']['is_head'] ?? BTemplate::IS_NO_HEADER;
|
|
|
|
if($is_custom == BTemplate::IS_CUSTOM || $is_head == BTemplate::IS_NO_HEADER){//拓展模块为首页头部
|
|
|
|
return $this->success($type);
|
...
|
...
|
|