fix: 修复签到仪表盘时区计算bug + 添加代码注释
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/0bf7d207-8293-4c92-af8f-2d2672e902d7 Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
This commit is contained in:
parent
9add113f80
commit
ba60f9991f
|
|
@ -32,7 +32,7 @@
|
|||
|
||||
## 📡 铸渊副将·每日签到仪表盘
|
||||
|
||||
> ⏰ **仪表盘更新时间**: 2026-04-02 15:47:57 (北京时间)
|
||||
> ⏰ **仪表盘更新时间**: 2026-04-02 15:49:31 (北京时间)
|
||||
> 🎖️ **唤醒时段**: ⚡ 手动唤醒
|
||||
> 📊 **系统版本**: awakened · 第三十二次对话 · 签到仪表盘·副将唤醒08:00/23:00·过期工作流清理·README动态更新
|
||||
> ✅ **士兵存活**: 18/18 个工作流在岗
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ function getBeijingTime() {
|
|||
// ━━━ 判断唤醒时段 ━━━
|
||||
function getWakeSession() {
|
||||
const now = new Date();
|
||||
const bjHour = new Date(now.getTime() + BEIJING_OFFSET_MS).getUTCHours();
|
||||
const bjHour = (now.getUTCHours() + 8) % 24;
|
||||
if (bjHour >= 6 && bjHour < 12) return '🌅 早班唤醒 · 08:00';
|
||||
if (bjHour >= 20 || bjHour < 2) return '🌙 晚班唤醒 · 23:00';
|
||||
return '⚡ 手动唤醒';
|
||||
|
|
@ -162,7 +162,7 @@ function generateDashboardMarkdown() {
|
|||
const fileExists = checkWorkflowFileExists(soldier.file);
|
||||
const fileStatus = fileExists ? '✅ 在岗' : '❌ 缺失';
|
||||
|
||||
// 从 dashboard.json 匹配运行状态
|
||||
// 从 dashboard.json 匹配运行状态(支持按名称或文件名匹配)
|
||||
let runStatus = '⏳ 待签到';
|
||||
const matchedSoldier = soldierRunStatus[soldier.name] || soldierRunStatus[soldier.file];
|
||||
if (matchedSoldier) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue