|
@@ -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;
|
|
}
|
|
}
|
|
|
|
|