feat(digest): 改成每天 9 点推「昨天」的视频情况
Deploy VitePress site to Pages / build (push) Canceled after 0s
Deploy VitePress site to Pages / Deploy (push) Canceled after 0s

当天还没过完,上午发「今天的」只会是半张表,晚上数据又翻了几倍;改报前一天,
和运营早上看的复盘口径一致。

- default_day() = 昨天,定时 / 手动发送 / 预览三处共用,口径不会再分叉
- 去重标记记的是**被报的那一天**,不是发送时刻 —— 9 点失败、10 点补发成功后
  不会再发一遍
- 推送时间默认 09:00;配置写坏时也按 09:00 兜底,不再是 22:00
This commit is contained in:
2026-10-23 08:35:36 +08:00
parent 525a75a5f3
commit be917ae6d4
8 changed files with 94 additions and 53 deletions
+1 -1
View File
@@ -308,7 +308,7 @@ export const monitorApi = {
api.get<LoginState>('/monitor/login/state', { params: { force } }),
getWebhook: () => api.get<WebhookStatus>('/monitor/webhook'),
/** 当天视频情况图:手动发一次(定时那条由后端按设置触发)。 */
/** 昨天视频情况图:手动发一次(每天早上那条由后端按设置触发)。 */
sendDailyDigest: (platform?: string) =>
api.post<{ ok: boolean; rows: number; detail: string }>('/monitor/digest/send', null, {
params: { platform },