|
|
|
@@ -186,11 +186,13 @@ public class WxMsgServiceImpl implements WxMsgService { |
|
|
|
} |
|
|
|
} else { |
|
|
|
PushLimit pushLimit = pushLimitService.getPushLimit(wxMsg.getTenantId()); |
|
|
|
String sendtime = wxMsg.getSendtime(); |
|
|
|
Date date = DateUtils.stringToDate(sendtime, "yyyy-MM-dd HH:mm:ss"); |
|
|
|
boolean isInDate = DateUtils.isInDate(date, pushLimit.getTimeStart(), pushLimit.getTimeEnd()); |
|
|
|
if (!isInDate) { |
|
|
|
return new ResultData(ErrorCode.PUSH_LIMIT_NOT_INRANG); |
|
|
|
if(pushLimit.getEnable().equals(EnumEnableType.Enable.getCode())) { |
|
|
|
String sendtime = wxMsg.getSendtime(); |
|
|
|
Date date = DateUtils.stringToDate(sendtime, "yyyy-MM-dd HH:mm:ss"); |
|
|
|
boolean isInDate = DateUtils.isInDate(date, pushLimit.getTimeStart(), pushLimit.getTimeEnd()); |
|
|
|
if (!isInDate) { |
|
|
|
return new ResultData(ErrorCode.PUSH_LIMIT_NOT_INRANG); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|