feat(contracts): embed slots admin and public endpoints
Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
@@ -39,3 +39,14 @@ export const DOWNLOAD_WINDOW_REQUESTS = 120;
|
||||
export const DOWNLOAD_WINDOW_SECONDS = 60;
|
||||
/** ov 互动流水清理调度间隔分钟(like_batches/visit_requests/visit_sessions)。 */
|
||||
export const CLEANUP_INTERVAL_MINUTES = 60;
|
||||
|
||||
// ── P4b 嵌入组件(悬浮轮播)──
|
||||
// 展示位轮播 iframe 的公开端点轮询参数(ETag 304 命中时零负载;默认值可被
|
||||
// env 覆盖,登记见根 .env.example,P4b Task 4 起被 apps/viewer 嵌入页读取)。
|
||||
|
||||
/** 展示位轮询间隔毫秒(拉新照片/检测 configVersion 变化)。 */
|
||||
export const EMBED_POLL_INTERVAL_MS = 30000;
|
||||
/** 轮询连续失败上限:达到后退避(间隔 × EMBED_POLL_BACKOFF_MULTIPLIER)。 */
|
||||
export const EMBED_POLL_MAX_FAILURES = 5;
|
||||
/** 轮询失败退避倍数(连续失败达上限后拉长间隔,成功即恢复正常间隔)。 */
|
||||
export const EMBED_POLL_BACKOFF_MULTIPLIER = 5;
|
||||
|
||||
Reference in New Issue
Block a user