diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index e2e0689..fcbea00 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -37,7 +37,8 @@ public function boot() // 关闭证书验证 return Http::withoutVerifying()->withHeaders([ 'X-Module-Api-Token' => $api_token, - 'Content-Type' => 'application/json' + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', ])->withOptions([ 'version' => 2, ])->baseUrl($url);