Explorar el Código

修改获取广告

15313670163 hace 1 mes
padre
commit
faaa5ce8b5
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/JsonRpc/WebsiteService.php

+ 1 - 1
app/JsonRpc/WebsiteService.php

@@ -500,7 +500,7 @@ class WebsiteService implements WebsiteServiceInterface
                      ->where('ad.fromtime', '<=', $now)
                      ->where('ad.totime', '>=', $now);
             })
-            ->select("ad_place.*")
+            ->select("ad_place.*",'ad.*',"ad_place.id as ad_place_id","ad.name as ad_name")
             ->get()->all();
             if(empty($result)){
                 return Result::error("此广告位不存在!",0);