‘linchangsheng’ 3 周之前
父節點
當前提交
67950d133a

+ 1 - 1
mall-miniapp-service/src/main/java/com/gree/mall/miniapp/logic/policy/WorkerLogic.java

@@ -455,7 +455,7 @@ public class WorkerLogic {
         Mailbox mailbox = mailboxService.getById("1");
         Date endTime = DateUtil.parseDateTime(DateUtils.formatDate(new Date(),"yyyy-MM-dd") +" "+ mailbox.getSendTime()+":00");
 
-        if (new Date().after(endTime) && DateUtil.offsetDay(startTime,21).month() != DateUtil.month(startTime)){
+        if (new Date().after(endTime) && DateUtil.offsetDay(startTime,2).month() != DateUtil.month(startTime)){
             month = month+1;
         }