From 6c8147cb17d1894cafb1a889e294840c1328608b Mon Sep 17 00:00:00 2001 From: liuwei Date: Tue, 18 Feb 2025 14:26:06 +0800 Subject: [PATCH] =?UTF-8?q?#=20=E9=A3=8E=E6=8E=A7=E5=A4=84=E7=90=86?= =?UTF-8?q?=EF=BC=8C=E9=9A=8F=E6=9C=BA=E5=BB=B6=E8=BF=9F=E5=8F=91=E9=80=81?= =?UTF-8?q?=EF=BC=8C=E8=A7=A3=E5=86=B3=E7=BE=A4=E6=B6=88=E6=81=AF=E9=AB=98?= =?UTF-8?q?=E9=A2=91=E5=8F=91=E9=80=81=E5=AF=BC=E8=87=B4=E7=9A=84=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E9=A3=8E=E9=99=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- robot.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/robot.py b/robot.py index 4ae6e01..4894d1f 100644 --- a/robot.py +++ b/robot.py @@ -7,6 +7,7 @@ import xml.etree.ElementTree as ET from queue import Empty from threading import Thread from datetime import datetime, timedelta +import random from base.func_epic import is_friday, get_free from base.func_zhipu import ZhiPu @@ -284,6 +285,10 @@ class Robot(Job): :param at_list: 要@的wxid, @所有人的wxid为:notify@all """ # msg 中需要有 @ 名单中一样数量的 @ + + # 风控处理,随机延迟发送,解决群消息高频发送导致的微信风险 + time.sleep(random.uniform(0.3, 1.0)) + ats = "" if at_list: if at_list == "notify@all": # @所有人