feat/task1-c-wallet
gongfuxiang 2019-05-25 13:26:57 +08:00
parent b8f564c7a1
commit dd58520fac
1 changed files with 1 additions and 2 deletions

View File

@ -574,8 +574,7 @@ class Weixin
// 回调地址
$redirect_uri = urlencode(MyUrl('index/order/pay', ['id'=>$input['id'], 'payment_id'=>$input['payment_id']]));
// 授权方式
$auth_type = (isset($ret['data']['auth_type']) && $ret['data']['auth_type'] == 1) ? 'snsapi_userinfo' : 'snsapi_base';
die(MyUrl('index/order/pay', ['id'=>$input['id'], 'payment_id'=>$input['payment_id']]));
// 授权code
$url = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid='.$this->config['appid'].'&redirect_uri='.$redirect_uri.'&response_type=code&scope=snsapi_base&state=callback#wechat_redirect';