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

bug: 最后获取涨浮不精准 #47

Open
gitHber opened this issue Sep 11, 2020 · 0 comments
Open

bug: 最后获取涨浮不精准 #47

gitHber opened this issue Sep 11, 2020 · 0 comments

Comments

@gitHber
Copy link

gitHber commented Sep 11, 2020

我看了一下源码,你是通过判断当前时间9:30-15:05去决定更不更新基金涨浮,同时启动定时器,每隔一分钟更新一次
这里面有个bug,那就是比如恰好3点到了,但是定时器还不到一分钟,这时候可能会有接近一分钟的延迟不更新数据,会造成更新的不准确,应该在clearInterval时再执行一次,我可以给你提一个pull request,如果你有更好的解决方式也可以自己处理

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

1 participant