瀏覽代碼

修改例外设置更新

xueyiming 5 月之前
父節點
當前提交
3ce15e3434

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

@@ -499,15 +499,15 @@ public class CoreServiceImpl implements CoreService {
             }
             }
         }
         }
         Integer publishNum = planAccount.getPublishNum();
         Integer publishNum = planAccount.getPublishNum();
+        int size = 0;
         if (StringUtils.isNotEmpty(planAccount.getExcludeContentIndex())) {
         if (StringUtils.isNotEmpty(planAccount.getExcludeContentIndex())) {
-            int size = JSONArray.parseArray(planAccount.getExcludeContentIndex(), Integer.class).size();
-            publishNum = publishNum - size;
+            size = JSONArray.parseArray(planAccount.getExcludeContentIndex(), Integer.class).size();
         }
         }
         if (publishNum == null || publishNum == 0) {
         if (publishNum == null || publishNum == 0) {
             LarkRobotUtil.sendMessage("发布数量设置为0 planAccountId=" + planAccount.getId());
             LarkRobotUtil.sendMessage("发布数量设置为0 planAccountId=" + planAccount.getId());
             return false;
             return false;
         }
         }
-        if (sendCount >= publishNum) {
+        if (sendCount >= publishNum - size) {
             return false;
             return false;
         }
         }