fix:钉钉消息限制

This commit is contained in:
Xiang
2026-01-26 09:32:44 +08:00
parent 94b46737da
commit 211cca9a4b
2 changed files with 2 additions and 6 deletions

View File

@@ -30,12 +30,7 @@ public class MsgSendUtils {
String cache = (String) redisService.get(redisKey);
if (StringUtils.isNotBlank(cache)) {
int sendNum = Integer.parseInt(cache);
if (sendNum == 0) {
jtDingTalkFactory.sendMsg(msgContent);
redisService.set(key, "0", 1, TimeUnit.HOURS);
return;
}
if (sendNum > 0 && sendNum <= 5) {
if (sendNum >= 0 && sendNum <= 5) {
jtDingTalkFactory.sendMsg(msgContent);
redisService.set(key, String.valueOf(++sendNum), 1, TimeUnit.HOURS);
}