mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-23 02:48:34 +08:00
优化
This commit is contained in:
@@ -97,9 +97,8 @@ func (s *HookService) handleOne(msg *netbase.DeviceEventInfo) {
|
|||||||
}
|
}
|
||||||
if msg.Type == message.ConnectMes {
|
if msg.Type == message.ConnectMes {
|
||||||
shadow.DeviceShadowInstance.SetOnline(msg.DeviceAuth.Name)
|
shadow.DeviceShadowInstance.SetOnline(msg.DeviceAuth.Name)
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
shadow.DeviceShadowInstance.SetOnline(msg.DeviceAuth.Name)
|
shadow.DeviceShadowInstance.SetOffline(msg.DeviceAuth.Name)
|
||||||
}
|
}
|
||||||
// 添加设备连接历史
|
// 添加设备连接历史
|
||||||
data := make(map[string]any)
|
data := make(map[string]any)
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user