|
|
@@ -95,8 +95,11 @@ public class KwBoxV1Controller extends BaseController { |
|
|
|
|
|
|
|
|
data.put(KwBoxService.PREFIX_SYS_STATUS,record.getRegisterStatus()); |
|
|
data.put(KwBoxService.PREFIX_SYS_STATUS,record.getRegisterStatus()); |
|
|
data.put(KwBoxService.PREFIX_COM_KEY,record.getComKey()); |
|
|
data.put(KwBoxService.PREFIX_COM_KEY,record.getComKey()); |
|
|
if (kwBox.getConfig() != null) |
|
|
|
|
|
data.put(KwBoxService.PREFIX_CONFIG,JSONObject.parseObject(kwBox.getConfig())); |
|
|
|
|
|
|
|
|
if (kwBox.getConfig() != null) { |
|
|
|
|
|
Map configMap = JSONObject.parseObject(kwBox.getConfig()); |
|
|
|
|
|
data.put(KwBoxService.PREFIX_CONFIG, configMap); |
|
|
|
|
|
|
|
|
|
|
|
}; |
|
|
List<String> meters = kwBoxService.findMetersAddress(kwBox); |
|
|
List<String> meters = kwBoxService.findMetersAddress(kwBox); |
|
|
if (!meters.isEmpty()) |
|
|
if (!meters.isEmpty()) |
|
|
data.put(KwBoxService.PREFIX_METERS,meters); |
|
|
data.put(KwBoxService.PREFIX_METERS,meters); |
|
|
|