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

前后都1.3.1版本,但总是返回Token失效,请重新登录 无法登录 #5

Open
lile-cowry opened this issue May 20, 2021 · 3 comments

Comments

@lile-cowry
Copy link

"code": 401,
"msg": "Token失效,请重新登录",
"success": false,
"timestamp": 1621535211198

另外想请教一下,前端的baseurl要设置成什么?是不是需要加上api/v1?

@lile-cowry
Copy link
Author

实测前后台都使用1.2版本,没有问题,可以正常登录,但1.3版本不可以。目测后台usercontroller里的login的mapping好像少了sys/。1.2版本是用的,1.3版本里没有,不知道是不是可以在哪里配置。

@hiparker
Copy link
Owner

"code": 401,
"msg": "Token失效,请重新登录",
"success": false,
"timestamp": 1621535211198

另外想请教一下,前端的baseurl要设置成什么?是不是需要加上api / v1?

不需要加 api/v1

@hiparker
Copy link
Owner

实测前后台都使用1.2版本,没有问题,可以正常登录,但1.3版本不可以。目测后台usercontroller里的登录的映射好像少了sys /。1.2版本是用的,1.3版本里没有,不知道是不是可以在哪里配置。

login 登录在 LoginRestController 里 和 UserRestController没多大关系,且 登录、退出、验证码、公钥 这些接口 是不受api限制的 api主要是针对业务模块

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