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

Closed
blacknwarrior opened this issue Sep 6, 2022 · 1 comment

Comments

@blacknwarrior
Copy link

No description provided.

@smartmimi
Copy link
Owner

接口里没有提供新增的数据。
现有确认数,是根据“历史确诊”-“历史治愈”-“历史死亡”来计算出来的。并没有直接提供现有确诊数。
所以也没有每日新增的数据。
如果想提供,那么需要再缓存里保存上一日的最后一次有效数据刷新后的数据,然后根据减法来计算。实现起来有难度,且不太实用。

以前用的腾讯的数据是直接提供计算后的结果的。新换的阿里健康的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