|
@@ -31,7 +31,7 @@ export class WechatObj {
|
|
|
let req = new SendAuthReq();
|
|
let req = new SendAuthReq();
|
|
|
req.isOption1 = false;
|
|
req.isOption1 = false;
|
|
|
req.nonAutomatic = true;
|
|
req.nonAutomatic = true;
|
|
|
- req.scope = 'snsapi_userinfo';
|
|
|
|
|
|
|
+ req.scope = 'snsapi_userinfo'; //应用授权作用域,获取用户个人信息则填写 snsapi_userinfo (只能填 snsapi_userinfo)
|
|
|
req.state = 'none';
|
|
req.state = 'none';
|
|
|
req.transaction = 'test123';
|
|
req.transaction = 'test123';
|
|
|
let finished = await WechatUtil.getWechatApi().sendReq(ContextHelper.UIAbilityContext, req);
|
|
let finished = await WechatUtil.getWechatApi().sendReq(ContextHelper.UIAbilityContext, req);
|