提交微信小程序多次推送问题

dev-discount
袁野 2 years ago
parent 355a4c598d
commit ee366f9fbd
  1. 46
      hai-cweb/src/main/java/com/cweb/controller/pay/CzOrderController.java

@ -121,16 +121,19 @@ public class CzOrderController {
// 判断是否充值成功 // 判断是否充值成功
if (dataObject.getInteger("status") == 3) { if (dataObject.getInteger("status") == 3) {
new Thread(() -> { if (rechargeOrder.getRechargeStatus() ==201) {
HighUser highUser = highUserService.findByUserId(rechargeOrder.getUserId()); new Thread(() -> {
WxMsgConfig.rechargedSuccess( HighUser highUser = highUserService.findByUserId(rechargeOrder.getUserId());
rechargeOrder.getRechargeContent() + "充值成功", WxMsgConfig.rechargedSuccess(
String.valueOf(rechargeOrder.getPayRealPrice()), rechargeOrder.getRechargeContent() + "充值成功",
rechargeOrder.getOrderNo(), String.valueOf(rechargeOrder.getPayRealPrice()),
rechargeOrder.getFinishTime(), rechargeOrder.getOrderNo(),
RechargePayType.getNameByType(rechargeOrder.getPayType()), rechargeOrder.getFinishTime(),
highUser.getOpenId()); RechargePayType.getNameByType(rechargeOrder.getPayType()),
}).start(); highUser.getOpenId());
}).start();
}
childOrder.setStatus(101); childOrder.setStatus(101);
rechargeOrder.setRechargeStatus(202); rechargeOrder.setRechargeStatus(202);
rechargeOrder.setPayStatus(100); rechargeOrder.setPayStatus(100);
@ -188,16 +191,19 @@ public class CzOrderController {
// 判断是否充值成功 // 判断是否充值成功
if (state == 1) { if (state == 1) {
new Thread(() -> {
HighUser highUser = highUserService.findByUserId(rechargeOrder.getUserId()); if (rechargeOrder.getRechargeStatus() ==201) {
WxMsgConfig.rechargedSuccess( new Thread(() -> {
rechargeOrder.getRechargeContent() + "充值成功", HighUser highUser = highUserService.findByUserId(rechargeOrder.getUserId());
String.valueOf(rechargeOrder.getPayRealPrice()), WxMsgConfig.rechargedSuccess(
rechargeOrder.getOrderNo(), rechargeOrder.getRechargeContent() + "充值成功",
rechargeOrder.getFinishTime(), String.valueOf(rechargeOrder.getPayRealPrice()),
RechargePayType.getNameByType(rechargeOrder.getPayType()), rechargeOrder.getOrderNo(),
highUser.getOpenId()); rechargeOrder.getFinishTime(),
}).start(); RechargePayType.getNameByType(rechargeOrder.getPayType()),
highUser.getOpenId());
}).start();
}
childOrder.setStatus(101); childOrder.setStatus(101);
rechargeOrder.setRechargeStatus(202); rechargeOrder.setRechargeStatus(202);
rechargeOrder.setPayStatus(100); rechargeOrder.setPayStatus(100);

Loading…
Cancel
Save