1***@qq.com
1***@qq.com
  • 发布:2021-04-02 11:25
  • 更新:2021-05-11 14:59
  • 阅读:1403

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

分类:HBuilderX

产品分类: HbuilderX

PC开发环境操作系统: Windows

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

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 负责人:DCloud_Android_DQQ 分享
已邀请:
zysapple

zysapple

同样的问题,无解

DCloud_UNI_Anne

DCloud_UNI_Anne

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

g***@qq.com

g***@qq.com

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

DCloud_UNI_Anne

DCloud_UNI_Anne

问题已复现,后续优化,已加分,感谢您的反馈!

DCloud_Android_DQQ

DCloud_Android_DQQ

bug 已确认。 三字节UTF8字符 在小概率场景出现此问题。 稍后版本修复

该问题目前已经被锁定, 无法添加新回复