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

关于api.bgm.tv/calendar可以输出成这样的格式吗? #209

Open
qq9077 opened this issue Apr 8, 2024 · 1 comment
Open

关于api.bgm.tv/calendar可以输出成这样的格式吗? #209

qq9077 opened this issue Apr 8, 2024 · 1 comment

Comments

@qq9077
Copy link

qq9077 commented Apr 8, 2024

现在的格式是 [{weekday:,
items:
},
[{weekday:,
items:
},
......]

如果是
{weekday:[{
"en": "MON",
"cn": "\u661f\u671f\u4e09",
"ja": "\u6c34\u8000\u65e5",
"id": 1,
current:true
},
......],
items:[]}

这样我单纯只需要items就不用 每个节点都遍历一遍才能使用里面的数据

@qq9077
Copy link
Author

qq9077 commented Apr 11, 2024

由于我习惯上会缓存数据以减少对服务器的请求 如果能增加一个 /calendar/version 来发现服务器数据是否有更新那就更好了

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