Browse Source

Merge branch '20250522_diywebfr'

15313670163 5 ngày trước cách đây
mục cha
commit
a042fc716a
1 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 3 2
      app/JsonRpc/PublicRpcService.php

+ 3 - 2
app/JsonRpc/PublicRpcService.php

@@ -1243,8 +1243,9 @@ class PublicRpcService implements PublicRpcServiceInterface
             return Result::error('暂无底部导航数据!');
         }
         $page_type = WebsiteTemplateInfo::where('website_id', $data['website_id'])->value('page_type');
-        // $page_type = json_decode($page_type,true);
-        if(isset($page_type) && $page_type == '[1,2,3,4,5,6,7]'){
+        $page_type = json_decode($page_type,true);
+        // '网站页面类型(存数组)1:首页 2:分类页 3:列表页 4:详情页 5:搜索页 6:特殊列表 7:特殊详情页
+        if(isset($page_type) && in_array(5,$page_type)){
             $page_type = 1;
         }else{
             $page_type = 0;