|
@@ -928,12 +928,12 @@ public class StudentPaymentOrderServiceImpl extends BaseServiceImpl<Long, Studen
|
|
|
if (payStatus == PayStatus.SUCCESSED) {
|
|
|
throw new BizException("订单已支付成功,请勿重复支付");
|
|
|
}
|
|
|
- if (payStatus == PayStatus.PAYING) {
|
|
|
- throw new BizException("有一笔支付中的订单,请勿重复支付");
|
|
|
+ if (repeatPay == false && payStatus == PayStatus.PAYING) {
|
|
|
+ return BaseController.failed(HttpStatus.CONTINUE, "您有支付中的订单,是否继续支付");
|
|
|
}
|
|
|
- if (!repeatPay) {
|
|
|
+ /*if (!repeatPay) {
|
|
|
return BaseController.failed(HttpStatus.CONTINUE, "您有待支付的订单,是否继续支付");
|
|
|
- }
|
|
|
+ }*/
|
|
|
//处理关闭订单
|
|
|
order.setStatus(DealStatusEnum.CLOSE);
|
|
|
order.setMemo("关闭订单");
|