fix: 新增态 效果
This commit is contained in:
@@ -82,6 +82,10 @@ function getSituation() {
|
||||
const updates = db.prepare('SELECT * FROM situation_update ORDER BY timestamp DESC LIMIT 50').all()
|
||||
// 数据更新时间:与前端「实时更新」一致,仅在爬虫 notify / 编辑保存时由 index.js 或 routes 更新
|
||||
const meta = db.prepare('SELECT updated_at FROM situation WHERE id = 1').get()
|
||||
let animationConfigRow = null
|
||||
try {
|
||||
animationConfigRow = db.prepare('SELECT strike_cutoff_days FROM animation_config WHERE id = 1').get()
|
||||
} catch (_) {}
|
||||
|
||||
let conflictEvents = []
|
||||
let conflictStats = { total_events: 0, high_impact_events: 0, estimated_casualties: 0, estimated_strike_count: 0 }
|
||||
@@ -180,6 +184,9 @@ function getSituation() {
|
||||
strikeSources: mapStrikeSources,
|
||||
strikeLines: mapStrikeLines,
|
||||
},
|
||||
animationConfig: {
|
||||
strikeCutoffDays: animationConfigRow?.strike_cutoff_days ?? 5,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user