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

用户中心新增Token错误 #149

Open
wenbinye opened this issue Nov 3, 2021 · 6 comments
Open

用户中心新增Token错误 #149

wenbinye opened this issue Nov 3, 2021 · 6 comments

Comments

@wenbinye
Copy link

wenbinye commented Nov 3, 2021

接口 /pages/server/api/auth/addToken 请求参数为:

{"expire_time":"2022-11-01"}

sso/k8s-service/token/TokenService.js 75 行中处理参数:

let date = Date.parse(expireTime + ":00");

无法正常解析导致错误

@ruanshudong
Copy link
Contributor

你用的k8s版本?

@wenbinye
Copy link
Author

wenbinye commented Nov 3, 2021

1.20。和这个有关系吗?
我把请求参数修改为下面这样就成功了:

{"expire_time":"2022-11-01 00:00"}

@ruanshudong
Copy link
Contributor

感觉有关系, 我用的貌似没发现问题, 我用的1.19的版本

@ruanshudong
Copy link
Contributor

或者你改一下, 我合并完, 下个版本我测试一下

@wenbinye
Copy link
Author

wenbinye commented Nov 3, 2021

对js不熟悉,我就不改了。建议把 + ":00" 删了就行

image

@kenyk
Copy link

kenyk commented Dec 15, 2021

docker部署tarscloud/framework:latest。也报错
image

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