$data = array_merge($data, [
'client_id' => env('PASSPORT_CLIENT_ID'),
'client_secret' => env('PASSPORT_CLIENT_SECRET'),
'grant_type' => $grantType
]);
return $data;
$res = $this->http->post('http://spavue.cn/oauth/token', [
'form_params' => $data
]);
这里的data数据中env获取的数据一直是空的null,然后他就报错了,提示缺少参数