From 56baefe80441f23d78c02ec958c3723722526742 Mon Sep 17 00:00:00 2001 From: hupeng Date: Fri, 18 Jan 2019 14:20:04 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=AE=A3=E4=BC=A0=E9=A1=B5][=E4=BF=AE?= =?UTF-8?q?=E6=94=B9]:=E8=87=AA=E7=94=B1=E5=9B=BE=E6=96=87=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=E5=A4=A7=E5=B0=8F=E9=99=90=E5=88=B6=E6=94=B9=E4=B8=BA?= =?UTF-8?q?16=E8=BF=9B=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/iformall/service/impl/WxCampaignServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxCampaignServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxCampaignServiceImpl.java index 8e084451a..39662754d 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxCampaignServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxCampaignServiceImpl.java @@ -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); }