diff --git a/app/Service/v3/Implementations/BannerService.php b/app/Service/v3/Implementations/BannerService.php index dd46f35..20da1ba 100644 --- a/app/Service/v3/Implementations/BannerService.php +++ b/app/Service/v3/Implementations/BannerService.php @@ -11,7 +11,8 @@ class BannerService implements BannerServiceInterface { return Banner::query() ->where(['type' => $type]) - ->whereIn('market_id', [0,$marketId]) + ->whereJsonContains('market_ids', [(string)$marketId]) + ->orderBy('sort','desc') ->get()->toArray(); } } \ No newline at end of file