_valid([ "store.require" => trans("empty.require") ],$request->method()); if (!is_array($param)) return error($param); $banner = [ [ "cover" => "https://washmy.oss-cn-guangzhou.aliyuncs.com/storage/dc7fd761c2e2af9c340f20677f8f115d942f0bde.png" ] ]; $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'])->field("product_id,product_name,image_list,category,price,line_price,sale_stock,id")->limit(10)->select()->toArray(); return success("ok",compact('banner','store','goods')); } catch (\Throwable $th) { return error($th->getMessage()); } } #[GetMapping("license")] public function getLicense(): Response { try { return success("ok",['img' => sConf("service.license")]); } catch (\Throwable $throwable) { return error($throwable->getMessage()); } } }