From 11102bcc96d5e014df7690a9848b26cc50a16a52 Mon Sep 17 00:00:00 2001 From: tanjianbin <632190820@qq.com> Date: Wed, 25 Mar 2026 19:01:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A7=BB=E9=99=A4=E5=86=97=E4=BD=99?= =?UTF-8?q?=E7=9A=84=E8=8E=B7=E5=8F=96=E8=81=8A=E5=A4=A9=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E8=B0=83=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除发送消息前后不必要的 WeworkLoopImpl.getChatMessageList 调用,避免重复获取聊天消息列表,提升操作效率。 --- .../java/org/yameida/worktool/service/WeworkOperationImpl.kt | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/src/main/java/org/yameida/worktool/service/WeworkOperationImpl.kt b/app/src/main/java/org/yameida/worktool/service/WeworkOperationImpl.kt index 6d33e09..ff203f4 100644 --- a/app/src/main/java/org/yameida/worktool/service/WeworkOperationImpl.kt +++ b/app/src/main/java/org/yameida/worktool/service/WeworkOperationImpl.kt @@ -2977,7 +2977,6 @@ object WeworkOperationImpl { LogUtils.v("atFailed: $atFailed") val content = if (atFailed) "@${atList?.joinToString()} $text" else text val append = (reply == true) || (!atList.isNullOrEmpty() && !atFailed) - WeworkLoopImpl.getChatMessageList(needInfer = false, imageCheck = false, titleList = titleList) if (AccessibilityUtil.findTextInput(getRoot(), content, append = append)) { AccessibilityUtil.findOneByText(getRoot(), "发送", exact = true, timeout = 2000) val sendButton = AccessibilityUtil.findAllByClazz(getRoot(), Views.Button) @@ -2987,7 +2986,6 @@ object WeworkOperationImpl { log("发送消息: \n$content") AccessibilityUtil.performClick(sendButton) sleep(Constant.POP_WINDOW_INTERVAL) - WeworkLoopImpl.getChatMessageList(needInfer = false, titleList = titleList) goHome() return true } else {