正在显示
1 个修改的文件
包含
3 行增加
和
3 行删除
@@ -67,12 +67,12 @@ func Start() { | @@ -67,12 +67,12 @@ func Start() { | ||
67 | break | 67 | break |
68 | //油炸机 | 68 | //油炸机 |
69 | case domain.DeviceTypeYouZhaJi2: | 69 | case domain.DeviceTypeYouZhaJi2: |
70 | - deviceYouZhaJi := &domain.DeviceYouZhaJi2{} | ||
71 | - err = json.Unmarshal(mBytes, deviceYouZhaJi) | 70 | + deviceYouZhaJi2 := &domain.DeviceYouZhaJi2{} |
71 | + err = json.Unmarshal(mBytes, deviceYouZhaJi2) | ||
72 | if err != nil { | 72 | if err != nil { |
73 | continue | 73 | continue |
74 | } | 74 | } |
75 | - deviceCollection.Values = deviceYouZhaJi | 75 | + deviceCollection.Values = tool_funs.SimpleStructToMap(deviceYouZhaJi2) |
76 | break | 76 | break |
77 | //串串机 | 77 | //串串机 |
78 | case domain.DeviceTypeChuanChuanJi: | 78 | case domain.DeviceTypeChuanChuanJi: |
-
请 注册 或 登录 后发表评论