获取openid的bug修复

This commit is contained in:
蒾酒
2024-12-27 08:55:17 +08:00
parent 8ea671775e
commit 54ddf8ce5b
2 changed files with 17 additions and 2 deletions

View File

@ -71,6 +71,7 @@ public class DeviceOtherMsgConsumer {
if(jsonObject.getStr("type")!=null){
if(jsonObject.getStr("type").equals("waterEleData")){
String data1 = jsonObject.getStr("data");
//收到定时报文
if(JSONUtil.parseObj(data1).get("action").equals("timeMsg")){
//更新设备在线状态
updateDeviceOnlineStatus( productId,serialNumber);
@ -79,6 +80,9 @@ public class DeviceOtherMsgConsumer {
if(i<1){
System.err.println("--------------------------保存使用记录失败!---------------------------");
}
}else if(JSONUtil.parseObj(data1).get("action").equals("safeMsg")){
//续费在线状态
updateDeviceOnlineStatus( productId,serialNumber);
}
}
}