Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

登录之后获取信息失败 #91

Open
awring opened this issue Oct 10, 2013 · 4 comments
Open

登录之后获取信息失败 #91

awring opened this issue Oct 10, 2013 · 4 comments

Comments

@awring
Copy link

awring commented Oct 10, 2013

点击个人中心——>换一种方式登录——>输入用户名和密码——>点击立即登录,提示登录成功但是获取信息失败,无论我重新登录多少次结果都一样。我查看了一下log,问题出在我登录时返回的key上,在Utility.java类中第77行(String[] temp = key.split(":");)对key进行了拆分,接着在80行获取temp数组的第二个元素(temp[1]),由于我登录时返回的key形式如下:"52********:",所以导致报错,信息如下:10-10 23:11:05.788: W/System.err(3403): java.lang.ArrayIndexOutOfBoundsException: length=1; index=1
。不知道这种情况是我的这个帐号特殊还是其他的某些帐号也会出现这种情况。

@IceskYsl
Copy link
Member

你的 key 输入的对么?

@IceskYsl
Copy link
Member

格式是 xxxx:xx 这样形式的

@awring
Copy link
Author

awring commented Oct 11, 2013

我不是通过输入密钥登录的,我是选择 换一种方式登录 的,所以key不用我自己输入,应该是由服务端返回来的,但是返回来的key是 xxxx: ,":"后面就没内容了。

@mjkohoh
Copy link
Contributor

mjkohoh commented Oct 15, 2013

我的key返回格式正确,我想这应该是服务端的问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants