fix 修复错误

This commit is contained in:
gallonyin
2022-10-28 16:45:08 +08:00
parent 1f0f42fc35
commit 94118aed48
2 changed files with 3 additions and 1 deletions

View File

@@ -32,6 +32,7 @@ object MyLooper {
dealWithMessage(msg.obj as WeworkMessageBean) dealWithMessage(msg.obj as WeworkMessageBean)
} catch (e: Exception) { } catch (e: Exception) {
LogUtils.e(e) LogUtils.e(e)
uploadCommandResult(msg.obj as WeworkMessageBean, ExecCallbackBean.ERROR_ILLEGAL_OPERATION, e.message ?: "", 0L)
} }
} }
} }

View File

@@ -211,7 +211,7 @@ object WeworkOperationImpl {
selectList: List<String>?, selectList: List<String>?,
groupAnnouncement: String?, groupAnnouncement: String?,
groupRemark: String?, groupRemark: String?,
groupTemplate: String groupTemplate: String?
): Boolean { ): Boolean {
val startTime = System.currentTimeMillis() val startTime = System.currentTimeMillis()
if (!WeworkRoomUtil.isGroupExists(groupName)) { if (!WeworkRoomUtil.isGroupExists(groupName)) {
@@ -808,6 +808,7 @@ object WeworkOperationImpl {
val imageView = val imageView =
AccessibilityUtil.findOneByClazz(item, Views.ImageView, root = false) AccessibilityUtil.findOneByClazz(item, Views.ImageView, root = false)
AccessibilityUtil.performClick(imageView) AccessibilityUtil.performClick(imageView)
break
} }
} }
} }