Skip to content

Commit

Permalink
update 重新检测群发助手
Browse files Browse the repository at this point in the history
  • Loading branch information
gallonyin committed Oct 16, 2023
1 parent debfabd commit ee3a9f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/src/main/java/org/yameida/worktool/Constant.kt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ object Constant {
var regTrimTitle = "(…$)".toRegex()
var key = "9876543210abcdef".toByteArray()
var iv = "0123456789abcdef".toByteArray()
var lastUseMultiSender = 0L
val transformation = "AES/CBC/PKCS7Padding"
val wssRegex = "^wss".toRegex()
val wsRegex = "^ws".toRegex()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,7 @@ object WeworkLoopImpl {
val title = titleList[0]
if (title == "群发助手") {
LogUtils.d("使用功能: 群发助手")
Constant.lastUseMultiSender = System.currentTimeMillis()
val list = AccessibilityUtil.findOneByClazz(getRoot(), Views.ListView)
if (list != null) {
var findDayFlag = false
Expand Down Expand Up @@ -557,6 +558,9 @@ object WeworkLoopImpl {
}
}
}
} else if (Constant.lastUseMultiSender > 0L && System.currentTimeMillis() - Constant.lastUseMultiSender > 300 * 1000) {
LogUtils.d("重新检测群发助手")
WeworkRoomUtil.intoRoom("群发助手")
}
return false
}
Expand Down

0 comments on commit ee3a9f2

Please sign in to comment.