1.fix
This commit is contained in:
2026-05-12 21:01:58 +08:00
parent d96422c142
commit d15d4bf363

View File

@@ -240,7 +240,7 @@ public class CommonUserOrderServiceImpl extends ServiceImpl<CommonUserOrderMappe
throw new ServiceException("商品ID格式非法");
}
if (request.getPaymentType() != 1 && request.getPaymentType() != 2) {
if (request.getPaymentType() != PaymentType.ALI.getCode() && request.getPaymentType() != PaymentType.WECHAT.getCode() && request.getPaymentType() != PaymentType.USER_POINT.getCode()) {
throw new ServiceException("请选择正确的支付方式");
}