authorize(){
if(!this.aweixin){
plus.nativeUI.alert("当前环境不支持微信登录");
return;
}
this.aweixin.authorize(function(e){
plus.nativeUI.alert("授权成功:"+JSON.stringify(e));
}, function(e){
plus.nativeUI.alert("授权失败:"+JSON.stringify(e));
}, {scope:'snsapi_userinfo',state:'authorize test',appid:'wxca815d3d235681b9'});
}
ios的授权之后回到APP后会跳转到一个新的空白页,android的没问题(回到原页面)
1 个回复
小小菜76055421
{scope:'snsapi_userinfo',state:'authorize test',appid:'wxca815d3d235681b9'} 这几个参数是必填的吗,为什么我没填,安卓,ios都运行正常,但是apple审核时,也报错了