|
@@ -41,7 +41,7 @@ class Home extends Base
|
|
|
]
|
|
]
|
|
|
];
|
|
];
|
|
|
$store = (new SaasStore)->where("poi_id",$param['store'])->field("poi_name,start_at,end_at,longitude,latitude,service_mobile,poi_id")->findOrEmpty();
|
|
$store = (new SaasStore)->where("poi_id",$param['store'])->field("poi_name,start_at,end_at,longitude,latitude,service_mobile,poi_id")->findOrEmpty();
|
|
|
- $goods = (new SaasGoods)->where("poi_id",$param['store'])->where("status",1)->field("product_id,product_name,image_list,category,price,line_price,sale_stock,id")->limit(10)->select()->toArray();
|
|
|
|
|
|
|
+ $goods = (new SaasGoods)->where("poi_id",$param['store'])->where("status",1)->field("product_id,product_name,image_list,category,price,line_price,sale_stock,id")->limit(10)->order('id','desc')->select()->toArray();
|
|
|
return success("ok",compact('banner','store','goods'));
|
|
return success("ok",compact('banner','store','goods'));
|
|
|
} catch (\Throwable $th) {
|
|
} catch (\Throwable $th) {
|
|
|
return error($th->getMessage());
|
|
return error($th->getMessage());
|