diff --git a/src/Providers/WeChatProvider.php b/src/Providers/WeChatProvider.php index 7041427..846a01f 100644 --- a/src/Providers/WeChatProvider.php +++ b/src/Providers/WeChatProvider.php @@ -78,13 +78,13 @@ protected function buildAuthUrlFromBase($url, $state) */ protected function getCodeFields($state = null) { - return [ + return array_merge([ 'appid' => $this->clientId, 'redirect_uri' => $this->redirectUrl, 'response_type' => 'code', 'scope' => $this->formatScopes($this->scopes, $this->scopeSeparator), 'state' => $state ?: md5(time()), - ]; + ], $this->parameters); } /**