Skip to content

Commit

Permalink
优化
Browse files Browse the repository at this point in the history
  • Loading branch information
PandaX-Go authored and PandaX-Go committed Dec 11, 2024
1 parent 075ebf1 commit 18051a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions iothub/hook_message_work/hook_message_work.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,8 @@ func (s *HookService) handleOne(msg *netbase.DeviceEventInfo) {
}
if msg.Type == message.ConnectMes {
shadow.DeviceShadowInstance.SetOnline(msg.DeviceAuth.Name)

} else {
shadow.DeviceShadowInstance.SetOnline(msg.DeviceAuth.Name)
shadow.DeviceShadowInstance.SetOffline(msg.DeviceAuth.Name)
}
// 添加设备连接历史
data := make(map[string]any)
Expand Down
6 changes: 3 additions & 3 deletions resource/pandax_iot.sql

Large diffs are not rendered by default.

0 comments on commit 18051a8

Please sign in to comment.