From 5e12f7ecfc9668222fec9631bce06992ceeff434 Mon Sep 17 00:00:00 2001 From: fnsoxt Date: Tue, 21 Apr 2015 10:56:10 +0800 Subject: [PATCH] Update WeixinAuth.php --- WeixinAuth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WeixinAuth.php b/WeixinAuth.php index 4fe990f..1c2ff8b 100644 --- a/WeixinAuth.php +++ b/WeixinAuth.php @@ -25,8 +25,8 @@ class WeixinAuth extends OAuth2 implements IAuth { public function buildAuthUrl(array $params = []) { $defaultParams = [ 'appid' => $this->clientId, - 'response_type' => 'code', 'redirect_uri' => $this->getReturnUrl(), + 'response_type' => 'code', ]; if (!empty($this->scope)) { $defaultParams['scope'] = $this->scope;