diff --git a/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/service/order/impl/StoreOrderServiceImpl.java b/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/service/order/impl/StoreOrderServiceImpl.java index bc81689c6..3c45399cf 100644 --- a/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/service/order/impl/StoreOrderServiceImpl.java +++ b/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/service/order/impl/StoreOrderServiceImpl.java @@ -1502,7 +1502,7 @@ public class StoreOrderServiceImpl extends ServiceImpl { Boolean flag = phoneRecordService.verifyPhone(request.getUserPhone(), rechargeGearDO.getRefundAmount().intValue() + ""); if (flag) { - throw new ServiceException("该挡位:" + rechargeGearDO.getName() + "你已购买,请勿重复操作"); + throw new ServiceException(200, "该挡位:" + rechargeGearDO.getName() + "你已购买,请勿重复操作"); } }); @@ -1516,7 +1516,7 @@ public class StoreOrderServiceImpl extends ServiceImpl> collect1 = infoDOS.stream().collect(Collectors.groupingBy(PhoneRecordDO::getRechargeGearId)); orderInfos.forEach(info -> { if (!CollectionUtils.isEmpty(collect1.get(info.getGearId()))) { - throw new ServiceException("该挡位:" + info.getName() + "你已购买,请勿重复操作"); + throw new ServiceException(200, "该挡位:" + info.getName() + "你已购买,请勿重复操作"); } }); }