From f76e8d9a77e9fb35ce22a64f5038dd8b7fa694ea Mon Sep 17 00:00:00 2001 From: zwssunny Date: Mon, 27 Mar 2023 18:25:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B9=E6=8D=AE=E5=8F=82=E6=95=B0=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E9=A2=91=E9=81=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- channel/wechat/wechat_channel.py | 2 +- channel/wechat/wechaty_channel.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/channel/wechat/wechat_channel.py b/channel/wechat/wechat_channel.py index 3d2c26a..c9a2255 100644 --- a/channel/wechat/wechat_channel.py +++ b/channel/wechat/wechat_channel.py @@ -190,7 +190,7 @@ class WechatChannel(Channel): thread_pool_callback) def handle_group_voice(self, msg): - if conf().get('speech_recognition') != True: + if conf().get('group_speech_recognition') != True: return logger.debug("[WX]receive group voice msg: " + msg['FileName']) group_name = msg['User'].get('NickName', None) diff --git a/channel/wechat/wechaty_channel.py b/channel/wechat/wechaty_channel.py index cc7788a..ac6717c 100644 --- a/channel/wechat/wechaty_channel.py +++ b/channel/wechat/wechaty_channel.py @@ -44,6 +44,7 @@ class WechatyChannel(Channel): async def on_scan(self, status: ScanStatus, qr_code: Optional[str] = None, data: Optional[str] = None): + pass # contact = self.Contact.load(self.contact_id) # logger.info('[WX] scan user={}, scan status={}, scan qr_code={}'.format(contact, status.name, qr_code)) # print(f'user <{contact}> scan status: {status.name} , 'f'qr_code: {qr_code}')