【fix】子设备上报方式修复

This commit is contained in:
XM-GO
2023-09-28 10:38:02 +08:00
parent 0dc58c0d18
commit 0b568d16e1
13 changed files with 378 additions and 64 deletions

View File

@@ -31,7 +31,7 @@ type DeviceApi struct {
}
func (p *DeviceApi) GetDevicePanel(rc *restfulx.ReqCtx) {
get, err := global.Cache.ComputeIfAbsent("panel", func(k any) (any, error) {
get, err := global.PanelCache.ComputeIfAbsent("panel", func(k any) (any, error) {
var data entity.DeviceTotalOutput
data.DeviceInfo = p.DeviceApp.FindDeviceCount()
data.DeviceLinkStatusInfo = p.DeviceApp.FindDeviceCountGroupByLinkStatus()