diff --git a/app/controller/api/Consumer.php b/app/controller/api/Consumer.php index 6cc0508..dce95bf 100644 --- a/app/controller/api/Consumer.php +++ b/app/controller/api/Consumer.php @@ -221,13 +221,14 @@ class Consumer extends Base return $this->request->domain() . $value; }); }, $orders); - if(!empty($list["list"])){ + + if(!empty($list["list"]->toArray())){ return $this->json(1,"ok",$list["list"]); } } } } - + $whereMap = []; $whereMap[] = ['position', '=', Slide::advertisement]; $list = $repo->slideList($whereMap, ["id","title","src as image","url","url_type as type"], $page, $size, function ($q){