|
|
|
@@ -94,7 +94,7 @@ public class WxCampaignServiceImpl implements WxCampaignService { |
|
|
|
return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(), "图文不能为空"); |
|
|
|
} |
|
|
|
int length = wxCampaign.getHtml().getBytes().length; |
|
|
|
if (length >= 16777215) { |
|
|
|
if (length >= 0xFFFFFF) { //Mysql MiddleText length limited |
|
|
|
return new ResultData(ErrorCode.SYS_PARAMETER_ERROR.getCode(), "图文内容过大无法保存"); |
|
|
|
} |
|
|
|
} |
|
|
|
@@ -185,7 +185,7 @@ public class WxCampaignServiceImpl implements WxCampaignService { |
|
|
|
} |
|
|
|
if (wxCoupon.getStatus() != EnumCouponStatus.COUPON_STATUS_THROW_IN.getCode()) { |
|
|
|
throw new MallinkException(ErrorCode.COUPON_IS_TAKE_OFF); |
|
|
|
} |
|
|
|
} |
|
|
|
if (wxCoupon.getValidEndDate() != null && wxCoupon.getValidEndDate().before(new Date())) { |
|
|
|
throw new MallinkException(ErrorCode.COUPON_IS_TAKE_OFF); |
|
|
|
} |
|
|
|
|