fix bugs
This commit is contained in:
2025-10-17 15:34:11 +08:00
parent 244b9d8b7a
commit ee545681b3

View File

@@ -52,9 +52,7 @@ public class ARPromotionManager {
@Transactional(rollbackFor = RuntimeException.class) @Transactional(rollbackFor = RuntimeException.class)
public Boolean addPromotion(ARPromotionRequest request) { public Boolean addPromotion(ARPromotionRequest request) {
if (request.getBenefitsType() == 3){ Assert.isTrue(request.getBenefitsType()<3,"该宝藏类型还未开启, 敬请期待");
throw new RuntimeException("该宝藏类型还未开启, 敬请期待");
}
ArMerchantInfo merchantInfo = arMerchantInfoService.getById(request.getMerchantId()); ArMerchantInfo merchantInfo = arMerchantInfoService.getById(request.getMerchantId());
Assert.notNull(merchantInfo, "未申请商家"); Assert.notNull(merchantInfo, "未申请商家");