$this->config['appid'], "client_secret" => $this->config['secret'], "grant_type" => $grantType ]; $url = $this->gateway."oauth/client_token/"; $result = Http::asJson()->post($url,$data)->array(); if(!empty($result['data'])) { return $result['data']; } return []; } }