提交代码

dev-discount
胡锐 3 years ago
parent 8288e62357
commit f2c14dacaa
  1. 6
      hai-service/src/main/java/com/hai/service/impl/HighOrderServiceImpl.java
  2. 2
      hai-service/src/main/java/com/hai/service/pay/impl/GoodsOrderServiceImpl.java

@ -481,7 +481,7 @@ public class HighOrderServiceImpl implements HighOrderService {
Map<String, Object> msgContent = new HashMap<>(); Map<String, Object> msgContent = new HashMap<>();
msgContent.put("order", highOrderService.getGasOrderDetail(highOrder.getOrderNo())); msgContent.put("order", highOrderService.getGasOrderDetail(highOrder.getOrderNo()));
msgContent.put("voice", baiduVoiceService.text2audio(highOrder.getHighChildOrderList().get(0).getGoodsName() + "加油站,收款:" + highOrder.getTotalPrice())); msgContent.put("voice", baiduVoiceService.text2audio(highOrder.getHighChildOrderList().get(0).getGoodsName() + ",收款:" + highOrder.getTotalPrice()));
pushMsg.put("message", JSONObject.toJSONString(msgContent)); pushMsg.put("message", JSONObject.toJSONString(msgContent));
HttpsUtils.doGet("http://127.0.0.1:9901/msg/websocket/websocket", pushMsg); HttpsUtils.doGet("http://127.0.0.1:9901/msg/websocket/websocket", pushMsg);
} }
@ -751,7 +751,7 @@ public class HighOrderServiceImpl implements HighOrderService {
Map<String, Object> msgContent = new HashMap<>(); Map<String, Object> msgContent = new HashMap<>();
msgContent.put("order", highOrderService.getGasOrderDetail(order.getOrderNo())); msgContent.put("order", highOrderService.getGasOrderDetail(order.getOrderNo()));
msgContent.put("voice", baiduVoiceService.text2audio(order.getHighChildOrderList().get(0).getGoodsName() + "加油站,收款:" + order.getTotalPrice())); msgContent.put("voice", baiduVoiceService.text2audio(order.getHighChildOrderList().get(0).getGoodsName() + ",收款:" + order.getTotalPrice()));
pushMsg.put("message", JSONObject.toJSONString(msgContent)); pushMsg.put("message", JSONObject.toJSONString(msgContent));
HttpsUtils.doGet("http://127.0.0.1:9901/msg/websocket/websocket", pushMsg); HttpsUtils.doGet("http://127.0.0.1:9901/msg/websocket/websocket", pushMsg);
} }
@ -1108,7 +1108,7 @@ public class HighOrderServiceImpl implements HighOrderService {
Map<String, Object> msgContent = new HashMap<>(); Map<String, Object> msgContent = new HashMap<>();
msgContent.put("order", highOrderService.getGasOrderDetail(order.getOrderNo())); msgContent.put("order", highOrderService.getGasOrderDetail(order.getOrderNo()));
msgContent.put("voice", baiduVoiceService.text2audio(order.getHighChildOrderList().get(0).getGoodsName() + "加油站,收款:" + order.getTotalPrice())); msgContent.put("voice", baiduVoiceService.text2audio(order.getHighChildOrderList().get(0).getGoodsName() + ",收款:" + order.getTotalPrice()));
pushMsg.put("message", JSONObject.toJSONString(msgContent)); pushMsg.put("message", JSONObject.toJSONString(msgContent));
HttpsUtils.doGet("http://127.0.0.1:9901/msg/websocket/websocket", pushMsg); HttpsUtils.doGet("http://127.0.0.1:9901/msg/websocket/websocket", pushMsg);
} }

@ -445,7 +445,7 @@ public class GoodsOrderServiceImpl implements PayService {
new Thread(() -> { new Thread(() -> {
Map<String, Object> message = new HashMap<>(); Map<String, Object> message = new HashMap<>();
message.put("order", highOrderService.getGasOrderDetail(order.getOrderNo())); message.put("order", highOrderService.getGasOrderDetail(order.getOrderNo()));
message.put("voice", baiduVoiceService.text2audio(order.getHighChildOrderList().get(0).getGoodsName() + "加油站,收款:" + order.getTotalPrice())); message.put("voice", baiduVoiceService.text2audio(order.getHighChildOrderList().get(0).getGoodsName() + ",收款:" + order.getTotalPrice()));
HttpsUtils.doGet("http://127.0.0.1:9901/msg/test/websocket", message); HttpsUtils.doGet("http://127.0.0.1:9901/msg/test/websocket", message);
}).start(); }).start();

Loading…
Cancel
Save