作者 yangfu

refactor:1.代码优化

... ... @@ -67,12 +67,12 @@ func Start() {
break
//油炸机
case domain.DeviceTypeYouZhaJi2:
deviceYouZhaJi := &domain.DeviceYouZhaJi2{}
err = json.Unmarshal(mBytes, deviceYouZhaJi)
deviceYouZhaJi2 := &domain.DeviceYouZhaJi2{}
err = json.Unmarshal(mBytes, deviceYouZhaJi2)
if err != nil {
continue
}
deviceCollection.Values = deviceYouZhaJi
deviceCollection.Values = tool_funs.SimpleStructToMap(deviceYouZhaJi2)
break
//串串机
case domain.DeviceTypeChuanChuanJi:
... ... @@ -164,4 +164,4 @@ func Start() {
}
}
})
}
\ No newline at end of file
}
... ...