【fix】设备数据保存到设备影子错误

This commit is contained in:
PandaX
2023-10-12 20:07:19 +08:00
parent b79d05caf2
commit 36ad817074
2 changed files with 4 additions and 4 deletions

View File

@@ -112,7 +112,7 @@ func (p *DeviceApi) GetDeviceStatus(rc *restfulx.ReqCtx) {
Type: tel.Type,
Define: tel.Define,
}
if v, ok := rs[strings.ToLower(tel.Key)]; ok {
if v, ok := rs[tel.Key]; ok {
sdv.Value = v.Value
sdv.Time = v.UpdatedAt
} else {