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

AuthApi:检查登录部分异常处理存在混淆 #14

Open
zuoRambo opened this issue Jul 10, 2018 · 2 comments
Open

AuthApi:检查登录部分异常处理存在混淆 #14

zuoRambo opened this issue Jul 10, 2018 · 2 comments

Comments

@zuoRambo
Copy link

image
如上图,不存在sky和检查最后访问时间是两种不同的异常,但是从返回值无法判断和区分,这样业务无法进行log,这给定位问题和解决问题带来了难度。

@jas0ncn
Copy link
Contributor

jas0ncn commented Jul 15, 2018

应该认为,这两种情况都是登录态过期,直接重走登录态获取流程是最好的办法。

@zuoRambo
Copy link
Author

我觉的userinfo为null或者loginExpire检查没通过的时候 应该向上抛异常
或者 在loginExpire检查失败时返回值里面的userinfo不应该为空数组

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

2 participants