Browse Source

修改接口: 获取通栏详情

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

+ 4 - 3
app/JsonRpc/PublicRpcService.php

@@ -1057,9 +1057,10 @@ class PublicRpcService implements PublicRpcServiceInterface
 
         // $sorts = array_values(array_unique(array_column($components, 'sort_id')));
         // $result['component'] = $components;
-        // $result['place'] = SectorPlace::where('sector_place.sector_type', $result['place_type'])
-        // ->select('sector_place.*')
-        // ->get()->all();
+        $result['place'] = SectorPlace::where('sector_place.sector_type', $result['place_type'])
+        ->where('sector_place.type_id',1)
+        ->select('sector_place.sector_img')
+        ->first();
         // $key_num = 0;
         // foreach($result['place'] as $key => $value){
         //     if($value['type_id'] == 1){