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

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

@ -121,6 +121,7 @@ public class CzOrderController {
// 判断是否充值成功
if (dataObject.getInteger("status") == 3) {
if (rechargeOrder.getRechargeStatus() ==201) {
new Thread(() -> {
HighUser highUser = highUserService.findByUserId(rechargeOrder.getUserId());
WxMsgConfig.rechargedSuccess(
@ -131,6 +132,8 @@ public class CzOrderController {
RechargePayType.getNameByType(rechargeOrder.getPayType()),
highUser.getOpenId());
}).start();
}
childOrder.setStatus(101);
rechargeOrder.setRechargeStatus(202);
rechargeOrder.setPayStatus(100);
@ -188,6 +191,8 @@ public class CzOrderController {
// 判断是否充值成功
if (state == 1) {
if (rechargeOrder.getRechargeStatus() ==201) {
new Thread(() -> {
HighUser highUser = highUserService.findByUserId(rechargeOrder.getUserId());
WxMsgConfig.rechargedSuccess(
@ -198,6 +203,7 @@ public class CzOrderController {
RechargePayType.getNameByType(rechargeOrder.getPayType()),
highUser.getOpenId());
}).start();
}
childOrder.setStatus(101);
rechargeOrder.setRechargeStatus(202);
rechargeOrder.setPayStatus(100);

Loading…
Cancel
Save