微信授权

feat/task1-c-wallet
devil_gong 2019-05-24 17:30:40 +08:00
parent f83bc566db
commit ab3ffb7fb2
1 changed files with 0 additions and 1 deletions

View File

@ -48,7 +48,6 @@ class Auth extends Controller
// 授权方式
$auth_type = (isset($ret['data']['auth_type']) && $ret['data']['auth_type'] == 1) ? 'snsapi_userinfo' : 'snsapi_base';
echo $auth_type;die;
// 授权code
$url = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid='.$ret['data']['appid'].'&redirect_uri='.$redirect_uri.'&response_type=code&scope='.$auth_type.'&state=login#wechat_redirect';