Quellcode durchsuchen

//

release_toaliyun_real
xhxu vor 4 Jahren
Ursprung
Commit
52b5d0b25e
1 geänderte Dateien mit 3 neuen und 4 gelöschten Zeilen
  1. +3
    -4
      mallinkService/src/main/java/com/iformall/service/impl/WxCouponServiceImpl.java

+ 3
- 4
mallinkService/src/main/java/com/iformall/service/impl/WxCouponServiceImpl.java Datei anzeigen

@@ -336,6 +336,9 @@ public class WxCouponServiceImpl implements WxCouponService {
} else { } else {
return new ResultData(ErrorCode.SYS_PARAMETER_ERROR.getCode(), "请填写有效时间类型"); return new ResultData(ErrorCode.SYS_PARAMETER_ERROR.getCode(), "请填写有效时间类型");
} }
if(!this.validCouponDate(record)) {
return new ResultData(ResultData.ERROR,"券有效使用日期必须在30天以内。");
}
} }


if(EnumCouponType.COUPON_GIFT.getCode().equals(record.getType())){ if(EnumCouponType.COUPON_GIFT.getCode().equals(record.getType())){
@@ -363,10 +366,6 @@ public class WxCouponServiceImpl implements WxCouponService {
} }
} }


if(!this.validCouponDate(record)) {
return new ResultData(ResultData.ERROR,"券有效使用日期必须在30天以内。");
}

if (EnumCouponContentType.HTML.getCode().equals(record.getContentType())) { if (EnumCouponContentType.HTML.getCode().equals(record.getContentType())) {
if (StringUtils.isEmpty(record.getHtml())) { if (StringUtils.isEmpty(record.getHtml())) {
return new ResultData(ErrorCode.SYS_PARAMETER_ERROR.getCode(), "请填写富文本内容"); return new ResultData(ErrorCode.SYS_PARAMETER_ERROR.getCode(), "请填写富文本内容");


Laden…
Abbrechen
Speichern