mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-23 02:48:34 +08:00
【fix】子设备上报方式修复
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user