Bläddra i källkod

修改接口:获取所有通栏版式

15313670163 13 timmar sedan
förälder
incheckning
0f423cdac5
1 ändrade filer med 9 tillägg och 0 borttagningar
  1. 9 0
      app/JsonRpc/PublicRpcService.php

+ 9 - 0
app/JsonRpc/PublicRpcService.php

@@ -2411,6 +2411,15 @@ class PublicRpcService implements PublicRpcServiceInterface
        $sector_place = SectorPlace::where($where)
     //    ->select('sector_place.*','size.width','size.height')
        ->get()->all();
+       if($data['type_id'] == 2){
+           foreach($sector_place as $key => $value){
+                $sector_place[$key]['component'] = Component::where('type_id',$value['type'])
+                ->where('component_width',$value['width'])
+                ->where('component_height',$value['height'])
+                ->get()->all();
+            }
+       }
+      
        if(empty($sector_place)){
             return Result::error('通栏版式不存在!');
        }