优化了一下缓存机制
This commit is contained in:
3
robot.py
3
robot.py
@@ -225,6 +225,7 @@ class Robot(Job):
|
||||
self.LOG.error(f"revoke_receive_message error: {e}")
|
||||
|
||||
try:
|
||||
#群人员添加也是消息类型10000的消息
|
||||
result = self.gmc.process_message(msg.roomid, msg.xml)
|
||||
# 判断是否没有变化
|
||||
if "$NO_CHANGE$" not in result:
|
||||
@@ -287,7 +288,7 @@ class Robot(Job):
|
||||
while wcf.is_receiving_msg():
|
||||
try:
|
||||
msg = wcf.get_msg()
|
||||
self.LOG.info(msg)
|
||||
self.LOG.debug(msg)
|
||||
self.processMsg(msg)
|
||||
except Empty:
|
||||
continue # Empty message
|
||||
|
||||
Reference in New Issue
Block a user