|
@@ -59,6 +59,12 @@ public class OrderPayServiceImpl implements IOrderPayService {
|
|
|
if (order == null) {
|
|
|
throw new BaseException("参数错误, 订单信息不存在");
|
|
|
}
|
|
|
+ if (Objects.equals(order.getStatus(), OrderStateEnum.CANCEL_PAY.getCode())) {
|
|
|
+ throw new BaseException("订单已关闭, 请回到游戏重新下单");
|
|
|
+ }
|
|
|
+ if (Objects.equals(order.getStatus(), OrderStateEnum.SUCCESS_PAY.getCode())) {
|
|
|
+ throw new BaseException("订单已支付, 请勿重复支付");
|
|
|
+ }
|
|
|
OrderPayParam orderPayParam = orderPayParamService.getOne(new LambdaQueryWrapper<OrderPayParam>()
|
|
|
.eq(OrderPayParam::getOrderId, order.getOrderId()));
|
|
|
if (orderPayParam != null) {
|