feat/task1-c-wallet
gongfuxiang 2019-05-25 14:06:44 +08:00
parent d924978e71
commit f7aaadef18
1 changed files with 3 additions and 1 deletions

View File

@ -577,7 +577,9 @@ class Weixin
// 回调地址
$redirect_uri = urlencode(MyUrl('index/order/pay'));
$redirect_uri = urlencode('http://test.shopxo.net/index/order/pay.html');
//$redirect_uri = urlencode('http://test.shopxo.net/index/order/pay.html');
die($redirect_uri);
// 授权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';