作者 lyh

gx

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