update 兼容使用模板

This commit is contained in:
gallonyin
2023-01-06 15:06:11 +08:00
parent bd6570bcdc
commit 481c19251a

View File

@@ -1525,7 +1525,7 @@ object WeworkOperationImpl {
val useTemplateTv = AccessibilityUtil.findOneByDesc(getRoot(), "使用该模板") val useTemplateTv = AccessibilityUtil.findOneByDesc(getRoot(), "使用该模板")
if (useTemplateTv != null) { if (useTemplateTv != null) {
AccessibilityUtil.performClick(useTemplateTv) AccessibilityUtil.performClick(useTemplateTv)
val useTv = AccessibilityUtil.findOneByDesc(getRoot(), "使用") val useTv = AccessibilityUtil.findOneByDesc(getRoot(), "使用", exact = true)
if (useTv != null) { if (useTv != null) {
AccessibilityUtil.performClick(useTv) AccessibilityUtil.performClick(useTv)
return true return true
@@ -1862,7 +1862,7 @@ object WeworkOperationImpl {
val bitmap = ImageUtils.bytes2Bitmap(file.readBytes()) val bitmap = ImageUtils.bytes2Bitmap(file.readBytes())
val mDecoder = QRCodeDecoder.Builder().build() val mDecoder = QRCodeDecoder.Builder().build()
val qrcode = mDecoder.decode(bitmap) val qrcode = mDecoder.decode(bitmap)
LogUtils.e("group: $groupName qrcode: $qrcode") LogUtils.d("group: $groupName qrcode: $qrcode")
val weworkMessageBean = WeworkMessageBean() val weworkMessageBean = WeworkMessageBean()
weworkMessageBean.type = WeworkMessageBean.GET_GROUP_QRCODE weworkMessageBean.type = WeworkMessageBean.GET_GROUP_QRCODE
weworkMessageBean.groupName = groupName weworkMessageBean.groupName = groupName