Browse Source

Merge branch 'dev-xym-fwh-send' of Server/long-article-manage into master

xueyiming 4 weeks ago
parent
commit
768ed4ad45

+ 2 - 2
long-article-server/src/main/java/com/tzld/piaoquan/longarticle/service/local/impl/CoreServiceImpl.java

@@ -809,8 +809,8 @@ public class CoreServiceImpl implements CoreService {
         }
         List<Integer> userGroupIds = articleUseGroupMapper.selectUserGroupId(planAccount.getGhId());
         LocalDate today = LocalDate.now(); // 获取当前日期
-        int dayOfYear = today.getDayOfYear();
-        int tailNum = dayOfYear % 8;
+        int dayOfMonth = today.getDayOfMonth();
+        int tailNum = dayOfMonth % 7;
         List<Integer> needPushUserGroupIds = new ArrayList<>();
         for (int userGroupId : userGroupIds) {
             if (userGroupId % 8 == tailNum) {