소스 검색

Merge branch '20250522_diywebfr'

15313670163 2 일 전
부모
커밋
e1090e4ede
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      app/JsonRpc/PublicRpcService.php

+ 3 - 1
app/JsonRpc/PublicRpcService.php

@@ -2466,7 +2466,9 @@ class PublicRpcService implements PublicRpcServiceInterface
             $where['component_num'] = $data['component_num'];
         }
        $sector_place = SectorPlace::where($where)
-    //    ->select('sector_place.*','size.width','size.height')
+       ->when($data['type_id'] == 2, function($query) use($data){
+            $query->orderBy('sort_id','asc');
+       })
        ->get()->all();
        if($data['type_id'] == 2){
            foreach($sector_place as $key => $value){