update 兼容使用模板
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user