Skip to content

Commit 66a81cd

Browse files
committed
fix: 修复群语音触发bug
1 parent 81edd13 commit 66a81cd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

channel/wechat/wechat_channel.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ def wrapper(self, msg):
6565
if conf().get('hot_reload') == True and int(create_time) < int(time.time()) - 60: # 跳过1分钟前的历史消息
6666
logger.debug("[WX]history message {} skipped".format(msgId))
6767
return
68-
print(create_time)
6968
return func(self, msg)
7069
return wrapper
7170

@@ -332,6 +331,8 @@ def _generate_reply(self, context: Context, reply: Reply = Reply()) -> Reply:
332331
ContextType.TEXT, reply.content, **context.kwargs)
333332
if new_context:
334333
reply = self._generate_reply(new_context)
334+
else:
335+
return
335336
else:
336337
logger.error('[WX] unknown context type: {}'.format(context.type))
337338
return

0 commit comments

Comments
 (0)