Skip to content
This repository has been archived by the owner on Aug 19, 2018. It is now read-only.

反馈一个bug #17

Closed
TooBug opened this issue Apr 10, 2013 · 1 comment
Closed

反馈一个bug #17

TooBug opened this issue Apr 10, 2013 · 1 comment

Comments

@TooBug
Copy link
Contributor

TooBug commented Apr 10, 2013

当我用一个绑定了email的账号去登录的时候,程序会卡住,大致跟了一下,发现在html5qq.lab.js中,getMyPersonal函数中会报错:

getMyPersonal: function(){
    var url = 'http://s.web2.qq.com/api/get_single_long_nick2?tuin='+this.qq+'&vfwebqq='+this.vfwebqq+'&t='+this.now();
    this.httpRequest("GET", url, null, false, function(result){
        result = JSON.parse(result);
        result = result.result[0].lnick; //这里报错
        HTML5QQ.myPersonal = result;
        if(HTML5QQ.debug){
            HTML5QQ.outputDebug("getMyPersonal: myPersonal("+JSON.stringify(HTML5QQ.myPersonal)+")");
        }
        HTML5QQ.getFriendsInfo();
    });
},

原因是服务器返回的结构是这样:

{
    retcode:100001,
    tips:'tuin 参数格式不正确!必须是整型!'
}

应该是中间某个地方有一个转换为数字账号的过程没有被包含到逻辑中。

@Sneezry
Copy link
Owner

Sneezry commented Apr 10, 2013

email账号登陆还不支持,因为整个拉取过程需要传递用户的QQ号码,如果用email登陆,该传统号码的地方就会传递email地址,导致错误

@Sneezry Sneezry closed this as completed Apr 12, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants