不响应时间,防止被风控
This commit is contained in:
2
robot.py
2
robot.py
@@ -468,7 +468,7 @@ class Robot(Job):
|
||||
"""使用插件处理消息"""
|
||||
# 获取所有消息处理插件
|
||||
|
||||
# 关闭12:30-05:00的系统交互,降低被风控风险
|
||||
# 关闭00:30-05:00的系统交互,降低被风控风险
|
||||
current_hour = time.localtime().tm_hour
|
||||
current_minute = time.localtime().tm_min
|
||||
is_sleep_time = (current_hour == 0 and current_minute >= 30) or (1 <= current_hour < 5)
|
||||
|
||||
Reference in New Issue
Block a user