diff --git a/hai-service/src/main/java/com/hai/service/impl/HighOrderServiceImpl.java b/hai-service/src/main/java/com/hai/service/impl/HighOrderServiceImpl.java index 9b8bf3c4..bb9af0bd 100644 --- a/hai-service/src/main/java/com/hai/service/impl/HighOrderServiceImpl.java +++ b/hai-service/src/main/java/com/hai/service/impl/HighOrderServiceImpl.java @@ -483,7 +483,7 @@ public class HighOrderServiceImpl implements HighOrderService { msgContent.put("order", highOrderService.getGasOrderDetail(highOrder.getOrderNo())); msgContent.put("voice", baiduVoiceService.text2audio(highOrder.getHighChildOrderList().get(0).getGoodsName() + ",收款:" + highOrder.getTotalPrice())); pushMsg.put("message", JSONObject.toJSONString(msgContent)); - HttpsUtils.doGet("http://127.0.0.1:9901/msg/websocket/websocket", pushMsg); + HttpsUtils.doPost("http://127.0.0.1:9901/msg/websocket/websocket", pushMsg, new HashMap<>()); } }).start(); } @@ -753,7 +753,7 @@ public class HighOrderServiceImpl implements HighOrderService { msgContent.put("order", highOrderService.getGasOrderDetail(order.getOrderNo())); msgContent.put("voice", baiduVoiceService.text2audio(order.getHighChildOrderList().get(0).getGoodsName() + ",收款:" + order.getTotalPrice())); pushMsg.put("message", JSONObject.toJSONString(msgContent)); - HttpsUtils.doGet("http://127.0.0.1:9901/msg/websocket/websocket", pushMsg); + HttpsUtils.doPost("http://127.0.0.1:9901/msg/websocket/websocket", pushMsg, new HashMap<>()); } }).start(); } @@ -1110,7 +1110,7 @@ public class HighOrderServiceImpl implements HighOrderService { msgContent.put("order", highOrderService.getGasOrderDetail(order.getOrderNo())); msgContent.put("voice", baiduVoiceService.text2audio(order.getHighChildOrderList().get(0).getGoodsName() + ",收款:" + order.getTotalPrice())); pushMsg.put("message", JSONObject.toJSONString(msgContent)); - HttpsUtils.doGet("http://127.0.0.1:9901/msg/websocket/websocket", pushMsg); + HttpsUtils.doPost("http://127.0.0.1:9901/msg/websocket/websocket", pushMsg, new HashMap<>()); } }).start(); } diff --git a/hai-service/src/main/java/com/hai/service/pay/impl/GoodsOrderServiceImpl.java b/hai-service/src/main/java/com/hai/service/pay/impl/GoodsOrderServiceImpl.java index 95289463..9b5be318 100644 --- a/hai-service/src/main/java/com/hai/service/pay/impl/GoodsOrderServiceImpl.java +++ b/hai-service/src/main/java/com/hai/service/pay/impl/GoodsOrderServiceImpl.java @@ -443,10 +443,14 @@ public class GoodsOrderServiceImpl implements PayService { if (order.getHighChildOrderList().get(0).getGoodsType().equals(3)) { new Thread(() -> { - Map message = new HashMap<>(); - message.put("order", highOrderService.getGasOrderDetail(order.getOrderNo())); - message.put("voice", baiduVoiceService.text2audio(order.getHighChildOrderList().get(0).getGoodsName() + ",收款:" + order.getTotalPrice())); - HttpsUtils.doGet("http://127.0.0.1:9901/msg/test/websocket", message); + Map pushMsg = new HashMap<>(); + pushMsg.put("userId", order.getHighChildOrderList().get(0).getGoodsId()); + + Map msgContent = new HashMap<>(); + msgContent.put("order", highOrderService.getGasOrderDetail(order.getOrderNo())); + msgContent.put("voice", baiduVoiceService.text2audio(order.getHighChildOrderList().get(0).getGoodsName() + ",收款:" + order.getTotalPrice())); + pushMsg.put("message", JSONObject.toJSONString(msgContent)); + HttpsUtils.doPost("http://127.0.0.1:9901/msg/websocket/websocket", pushMsg, new HashMap<>()); }).start(); new Thread(() -> {