...
|
...
|
@@ -48,7 +48,7 @@ class Wechat extends Api |
|
|
$app = WehcatModule::getInstance()->initWechat();
|
|
|
if(empty($code)){
|
|
|
//跳转官方
|
|
|
$APPID = 'wxb9b259e7a17bda27';
|
|
|
$APPID = config("site.appid");
|
|
|
$REDIRECT_URI = urlencode('https://coupon.xp.yn.cn/index.php/api/v1/Wechat/test_code');
|
|
|
$SCOPE = 'snsapi_userinfo';//snsapi_base
|
|
|
$redirect = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=$APPID&redirect_uri=$REDIRECT_URI&response_type=code&scope=$SCOPE&state=STATE#wechat_redirect";
|
...
|
...
|
|