소스 검색

修改接口: 获取通栏详情

15313670163 1 일 전
부모
커밋
97a76ebaf3
1개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  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){