$account, "page" => $page, "size" => $size ]; $url = "{$this->gateway}goodlife/v1/shop/poi/query/"; $result = Http::asJson()->withHeaders($this->header)->get($url,$data)->array(); if(!empty($result['data'])) { return $result['data']; } return []; } /** * 获取来客绑定的所有分类 */ public function getStoreCategoryData(string $account) { $data = [ "account_id" => $account, "query_category_type" => 1 ]; $url = "{$this->gateway}goodlife/v1/goods/category/get/"; $result = Http::asJson()->withHeaders($this->header)->get($url,$data)->array(); if(!empty($result['data'])) { return $result['data']; } return []; } }