update:
fix bugs
This commit is contained in:
@@ -52,9 +52,7 @@ public class ARPromotionManager {
|
||||
@Transactional(rollbackFor = RuntimeException.class)
|
||||
public Boolean addPromotion(ARPromotionRequest request) {
|
||||
|
||||
if (request.getBenefitsType() == 3){
|
||||
throw new RuntimeException("该宝藏类型还未开启, 敬请期待");
|
||||
}
|
||||
Assert.isTrue(request.getBenefitsType()<3,"该宝藏类型还未开启, 敬请期待");
|
||||
|
||||
ArMerchantInfo merchantInfo = arMerchantInfoService.getById(request.getMerchantId());
|
||||
Assert.notNull(merchantInfo, "未申请商家");
|
||||
|
||||
Reference in New Issue
Block a user