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

可以做一个cookie输对了没有的验证 #10

Open
JJUNLANG opened this issue Jun 7, 2023 · 4 comments
Open

可以做一个cookie输对了没有的验证 #10

JJUNLANG opened this issue Jun 7, 2023 · 4 comments

Comments

@JJUNLANG
Copy link

JJUNLANG commented Jun 7, 2023

可以做一个cookie输对了没有的验证,不然cookie错误或者过期了都不知道,抢不到票

@shiyutim
Copy link
Owner

shiyutim commented Jun 7, 2023

目前cookie过期有两种,一种是过期是需要重新登录,另外一种是周期的过期,重新进入页面获取一次即可。如果是周期的更新目前需要找到如何前端更新,那么就比较好办了。目前如果要判断是否过期只能周期的轮训接口判断,我觉得不是上上策。尽量在要抢票一个小时之前去定时,那样基本cookie不会过期。

@JJUNLANG
Copy link
Author

JJUNLANG commented Jun 7, 2023

主要是我每次刷新页面,cookie就会变化,有时候获取了输进去也说过期,这样不好知道自己输对了没有

@shiyutim
Copy link
Owner

shiyutim commented Jun 7, 2023

获取cookie 尽量在商品详情页的接口获取。我在开发的时候印象里刷新页面好像自己使用的也不会过期。

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
@shiyutim @JJUNLANG and others