修复公众号授权10003的问题!
This commit is contained in:
@@ -245,11 +245,12 @@ class AuthWechat {
|
|||||||
("" + Math.random()).split(".")[1] + "authorizestate"
|
("" + Math.random()).split(".")[1] + "authorizestate"
|
||||||
);
|
);
|
||||||
uni.setStorageSync(STATE_KEY, state);
|
uni.setStorageSync(STATE_KEY, state);
|
||||||
if(snsapiBase==='snsapi_base'){
|
return `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${appId}&redirect_uri=${redirect_uri}&response_type=code&scope=snsapi_userinfo&state=${state}#wechat_redirect`;
|
||||||
return `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${appId}&redirect_uri=${redirect_uri}&response_type=code&scope=snsapi_base&state=${state}#wechat_redirect`;
|
// if(snsapiBase==='snsapi_base'){
|
||||||
}else{
|
// return `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${appId}&redirect_uri=${redirect_uri}&response_type=code&scope=snsapi_base&state=${state}#wechat_redirect`;
|
||||||
return `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${appId}&redirect_uri=${redirect_uri}&response_type=code&scope=snsapi_userinfo&state=${state}#wechat_redirect`;
|
// }else{
|
||||||
}
|
// return `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${appId}&redirect_uri=${redirect_uri}&response_type=code&scope=snsapi_userinfo&state=${state}#wechat_redirect`;
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user