1
This commit is contained in:
@@ -68,6 +68,7 @@ class DeviceManager {
|
|||||||
lastHeartbeat: now,
|
lastHeartbeat: now,
|
||||||
dailyCounts: { date: utils.getTodayString(), searchCount: 0, applyCount: 0, chatCount: 0 }
|
dailyCounts: { date: utils.getTodayString(), searchCount: 0, applyCount: 0, chatCount: 0 }
|
||||||
});
|
});
|
||||||
|
console.log(`[设备管理器] 新设备 ${sn_code} 初始化 - isLoggedIn: ${heartbeatData.isLoggedIn}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
const device = this.devices.get(sn_code);
|
const device = this.devices.get(sn_code);
|
||||||
@@ -76,6 +77,7 @@ class DeviceManager {
|
|||||||
// 更新登录状态
|
// 更新登录状态
|
||||||
if (heartbeatData.isLoggedIn !== undefined) {
|
if (heartbeatData.isLoggedIn !== undefined) {
|
||||||
device.isLoggedIn = heartbeatData.isLoggedIn;
|
device.isLoggedIn = heartbeatData.isLoggedIn;
|
||||||
|
console.log(`[设备管理器] 设备 ${sn_code} 登录状态更新 - isLoggedIn: ${device.isLoggedIn}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user