'commit'
This commit is contained in:
@@ -297,17 +297,6 @@ class ChatMonitorBot:
|
||||
if reply:
|
||||
logger.info(f"LLM 建议回复: {reply}")
|
||||
if self.input_pos:
|
||||
# 如果触发回复的消息是语音,先点击语音条以清理状态
|
||||
if last_msg.get('type') == 'voice':
|
||||
logger.info("回复前点击语音消息中心以关闭转文字遮罩")
|
||||
try:
|
||||
cx, cy = last_msg.get('center', (0, 0))
|
||||
WxUtil.safe_device_click(self.device, cx, cy)
|
||||
await asyncio.sleep(1.5)
|
||||
self.device.screenshot(self.screenshot_path)
|
||||
except Exception as e:
|
||||
logger.warning(f"清理语音状态失败: {e}")
|
||||
|
||||
# 确定输入框位置
|
||||
target_pos = self.input_pos[0] if isinstance(self.input_pos, (list, tuple)) and len(self.input_pos) == 2 else self.input_pos
|
||||
|
||||
|
||||
Reference in New Issue
Block a user