1016950775@qq.com
1016950775@qq.com
  • 发布:2021-04-02 11:25
  • 更新:2 天前
  • 阅读:348

【报Bug】uni.getUserInfo(OBJECT)获取QQ的信息,昵称等出现乱码

分类:HBuilderX

产品分类: HbuilderX

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: 20H2

HBuilderX类型: 正式

HBuilderX版本号: 3.1.7

操作步骤:

uni.login({
provider: "qq",
success: (res) => {
console.log(res, "第一个参数");
uni.getUserInfo({
provider: "qq",
success: (res1) => {
console.log(res1, "第二个参数");
}
})
}
})

预期结果:

{
"errMsg": "getUserInfo:ok",
"userInfo": {
"ret": 0,
"msg": "",
"is_lost": 0,
"nickname": "♞凭栏听雨",
"gender": "女",
"gender_type": 1,
"province": "北京",
"city": "东城",
"year": "2019",
"constellation": "",
"figureurl": "http://qzapp.qlogo.cn/qzapp/1104455702/E0BC75407C54AB4EBD10B86F30385573/30",
"figureurl_1": "http://qzapp.qlogo.cn/qzapp/1104455702/E0BC75407C54AB4EBD10B86F30385573/50",
"figureurl_2": "http://qzapp.qlogo.cn/qzapp/1104455702/E0BC75407C54AB4EBD10B86F30385573/100",
"figureurl_qq_1": "http://thirdqq.qlogo.cn/g?b=oidb&k=2xOLEAaQAQWOppfdPYMGOA&s=40&t=1560659149",
"figureurl_qq_2": "http://thirdqq.qlogo.cn/g?b=oidb&k=2xOLEAaQAQWOppfdPYMGOA&s=100&t=1560659149",
"figureurl_qq": "http://thirdqq.qlogo.cn/g?b=oidb&k=2xOLEAaQAQWOppfdPYMGOA&s=640&t=1560659149",
"figureurl_type": "1",
"is_yellow_vip": "0",
"vip": "0",
"yellow_vip_level": "0",
"level": "0",
"is_yellow_year_vip": "0",

    "nickName": "♞凭栏听雨",  
    "avatarUrl": "http://qzapp.qlogo.cn/qzapp/1104455702/E0BC75407C54AB4EBD10B86F30385573/30"  
}  

}

实际结果:

{
"errMsg": "getUserInfo:ok",
"userInfo": {
"ret": 0,
"msg": "",
"is_lost": 0,
"nickname": "♞꺸꺸꺸栏꺸꺸꺸雨",
"gender": "女",
"gender_type": 1,
"province": "꺸꺸꺸京",
"city": "东꺸꺸꺸",
"year": "2019",
"constellation": "",
"figureurl": "http://qzapp.qlogo.cn/qzapp/1104455702/E0BC75407C54AB4EBD10B86F30385573/30",
"figureurl_1": "http://qzapp.qlogo.cn/qzapp/1104455702/E0BC75407C54AB4EBD10B86F30385573/50",
"figureurl_2": "http://qzapp.qlogo.cn/qzapp/1104455702/E0BC75407C54AB4EBD10B86F30385573/100",
"figureurl_qq_1": "http://thirdqq.qlogo.cn/g?b=oidb&k=2xOLEAaQAQWOppfdPYMGOA&s=40&t=1560659149",
"figureurl_qq_2": "http://thirdqq.qlogo.cn/g?b=oidb&k=2xOLEAaQAQWOppfdPYMGOA&s=100&t=1560659149",
"figureurl_qq": "http://thirdqq.qlogo.cn/g?b=oidb&k=2xOLEAaQAQWOppfdPYMGOA&s=640&t=1560659149",
"figureurl_type": "1",
"is_yellow_vip": "0",
"vip": "0",
"yellow_vip_level": "0",
"level": "0",
"is_yellow_year_vip": "0",

    "nickName": "♞꺸꺸꺸栏꺸꺸꺸雨",  
    "avatarUrl": "http://qzapp.qlogo.cn/qzapp/1104455702/E0BC75407C54AB4EBD10B86F30385573/30"  
}  

}

bug描述:

uni.getUserInfo(OBJECT)获取QQ的信息,昵称等出现乱码

原昵称为:♞凭栏听雨

province:北京
city:东城

2021-04-02 11:25 负责人:无 分享
已邀请:
zysapple

zysapple

同样的问题,无解

DCloud_UNI_Anne

DCloud_UNI_Anne

HX 3.1.7和3.1.8测试均未复现。请补充下详细的设备信息,多测几个设备看下,是否存在此问题

gdwebinfo@qq.com

gdwebinfo@qq.com

华为mate30同样的乱码,最新版本hbuilderx

要回复问题请先登录注册