zwssunny пре 3 година
родитељ
комит
f76e8d9a77
2 измењених фајлова са 2 додато и 1 уклоњено
  1. 1 1
      channel/wechat/wechat_channel.py
  2. 1 0
      channel/wechat/wechaty_channel.py

+ 1 - 1
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)

+ 1 - 0
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}')