Selaa lähdekoodia

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

xueyiming 3 viikkoa sitten
vanhempi
commit
7ee3d66788

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

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