- ) : data && data.leagues.length > 0 ? (
+ ) : (
+
+ {[
+ { name: 'bzzoiro', label: 'Bzzoiro', st: bzzoiro },
+ { name: 'understat', label: 'Understat (xG)', st: understat },
+ { name: 'injuries', label: 'Injuries (伤停)', st: injuries },
+ ].map(({ name, label, st }) => {
+ const hasData = st && st.recent_count > 0
+ const keyOk = st?.key_configured !== false
+ return (
+
+ {label}
+
+ {hasData ? (
+ <>
+ {st.recent_count.toLocaleString()} 条
+ {st.last_success_at ? new Date(st.last_success_at).toLocaleString('zh-CN', { month: '2-digit', day: '2-digit', hour: '2-digit', minute: '2-digit', hour12: false }) : ''}
+ >
+ ) : keyOk ? (
+ 无数据
+ ) : (
+ 未配置 Key
+ )}
+
+
+
+ )
+ })}
+
+
+ {/* ── 已入库联赛 ── */}
+ {dash && dash.leagues.length > 0 && (
+