update 优化切换企业
This commit is contained in:
@@ -1861,12 +1861,13 @@ object WeworkOperationImpl {
|
|||||||
*/
|
*/
|
||||||
fun switchCorp(message: WeworkMessageBean, objectName: String): Boolean {
|
fun switchCorp(message: WeworkMessageBean, objectName: String): Boolean {
|
||||||
val startTime = System.currentTimeMillis()
|
val startTime = System.currentTimeMillis()
|
||||||
goHomeTab("消息")
|
Constant.duplicationFilter = false
|
||||||
if (Constant.myCorp == objectName) {
|
if (Constant.myCorp == objectName) {
|
||||||
LogUtils.d("当前已在目标企业: $objectName")
|
LogUtils.d("当前已在目标企业: $objectName")
|
||||||
uploadCommandResult(message, ExecCallbackBean.SUCCESS, "切换企业成功: $objectName", startTime, listOf(objectName), listOf())
|
uploadCommandResult(message, ExecCallbackBean.SUCCESS, "切换企业成功: $objectName", startTime, listOf(objectName), listOf())
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
goHomeTab("消息")
|
||||||
val firstTv = AccessibilityUtil.findAllByClazz(getRoot(), Views.TextView)
|
val firstTv = AccessibilityUtil.findAllByClazz(getRoot(), Views.TextView)
|
||||||
.firstOrNull { it.text == null }
|
.firstOrNull { it.text == null }
|
||||||
AccessibilityUtil.performClick(firstTv, retry = false)
|
AccessibilityUtil.performClick(firstTv, retry = false)
|
||||||
|
|||||||
Reference in New Issue
Block a user