优化MQ通知
This commit is contained in:
parent
604d80147c
commit
77884116d9
@ -324,6 +324,7 @@ public class BaseWebSocketProcess {
|
||||
if(isOk.getCode().equals(RespCodeEnum.SUCESS.getCode())){
|
||||
if(action.getDeviceUserBindEntity().getU3dId() != null){
|
||||
log.info("通知U3DMQ");
|
||||
try{
|
||||
U3dMsg u3dMsg = new U3dMsg();
|
||||
u3dMsg.setMsgType(100);
|
||||
u3dMsg.setMetaId(action.getDeviceUserBindEntity().getU3dId());
|
||||
@ -333,6 +334,10 @@ public class BaseWebSocketProcess {
|
||||
mqService.sendMessage(YunxiRabbitConst.EXCHANGE_YUNXI_EVENT,
|
||||
YunxiRabbitConst.ROUTE_KEY_YUNXI,
|
||||
JSONObject.toJSONString(u3dMsg)).subscribe();
|
||||
}catch (Exception e){
|
||||
log.info("通知U3D MQ异常{}", e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//通知打开灯成功
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user