Преглед изворни кода

修改接口:添加组件;

15313670163 пре 17 часа
родитељ
комит
acb68d530a
1 измењених фајлова са 0 додато и 5 уклоњено
  1. 0 5
      app/JsonRpc/PublicRpcService.php

+ 0 - 5
app/JsonRpc/PublicRpcService.php

@@ -1324,15 +1324,10 @@ class PublicRpcService implements PublicRpcServiceInterface
         ->where('type_id',2)->where('sort_id',$data['sort_id'])->first();
         // 组件分类:1:资讯-头条组件;2:资讯-轮播组件;3:资讯-推荐类组件;4:资讯-热点类组件;5:栏目资讯类;
         // 6:广告类组件;7:列表类组件;8:详情类组件;9:底部导航类组件;10:最新资讯类组件;11:导航栏类;
-        if(is_array($data['page_type']) && !empty($data['page_type'])){
-            $page_type = array_values(array_map('intval',$data['page_type']));
-            $data['page_type'] = json_encode($page_type,true);
-        }
         $data['type_id'] = intval($data['type_id']);
         $add_arr = [
             'template_id' => intval($data['template_id']),
             'sector_id' => intval($data['sector_id']),
-            'page_type' => $data['page_type'],
             'component_type' => intval($data['component_type']),
             'component_name' => $data['component_name'],
             'component_img' => $data['component_img'],