update 优化指令打断漏消息

This commit is contained in:
gallonyin
2023-07-21 14:49:08 +08:00
parent 7ac8a8527c
commit a747d5890c
2 changed files with 9 additions and 2 deletions

View File

@@ -19,7 +19,7 @@ https://www.apifox.cn/apidoc/project-1035094/doc-840833
## 兼容版本(重要) ## 兼容版本(重要)
⏬ 经过测试验证的版本:企业微信 4.0.2 至 4.1.6 (5月19日上架)、企业微信政务版 ⏬ 经过测试验证的版本:企业微信 4.0.2 至 4.1.7 (7月20日上架)、企业微信政务版
⚠️ 建议使用 WorkTool 已兼容的最新企业微信版本 ⚠️ 建议使用 WorkTool 已兼容的最新企业微信版本

View File

@@ -46,7 +46,14 @@ object WeworkLoopImpl {
continue continue
} }
if (!mainLoopRunning) break if (!mainLoopRunning) break
getChatroomList() if (getChatroomList()) {
LogUtils.d("进入点击进入聊天页: ")
if (!getChatMessageList()) {
sleep(Constant.POP_WINDOW_INTERVAL)
LogUtils.d("重试获取聊天列表: ")
getChatMessageList()
}
}
if (!mainLoopRunning) break if (!mainLoopRunning) break
getFriendRequest() getFriendRequest()
if (!mainLoopRunning) break if (!mainLoopRunning) break