0元付款 报错问题

This commit is contained in:
wangw 2025-03-19 17:38:59 +08:00
parent df1d20b7c3
commit 5a51c83f99
2 changed files with 4 additions and 1 deletions

View File

@ -13,4 +13,7 @@ public class PaySuccessException extends RuntimeException {
@Serial
private static final long serialVersionUID = 1L;
public PaySuccessException(String message) {
super(message);
}
}

View File

@ -132,7 +132,7 @@ public class PayServiceImpl implements PayService {
//发送打票信息
rabbitPublisher.sendOrderPrintMsg(orderInfo.getId().toString(), orderInfo.getIsPrint() == 1);
redisService.del(RedisCst.classKeyExpired.EXPIRED_ORDER + orderInfo.getId());
throw new PaySuccessException();
throw new PaySuccessException("支付成功");
}
return orderInfo;
}