代码拉取完成,页面将自动刷新
From 34588d87a11a5d4626ed18c30a49238dcab72312 Mon Sep 17 00:00:00 2001
From: xiebaiyuan <xiebaiyuan@139.com>
Date: Thu, 1 Aug 2024 16:46:32 +0800
Subject: [PATCH] Fix SYMBOLOGY_IDENTIFIER loss in QRCodeMultiReader
---
.../java/com/google/zxing/multi/qrcode/QRCodeMultiReader.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/core/src/main/java/com/google/zxing/multi/qrcode/QRCodeMultiReader.java b/core/src/main/java/com/google/zxing/multi/qrcode/QRCodeMultiReader.java
index c3663498b8..e5699e4768 100644
--- a/core/src/main/java/com/google/zxing/multi/qrcode/QRCodeMultiReader.java
+++ b/core/src/main/java/com/google/zxing/multi/qrcode/QRCodeMultiReader.java
@@ -83,6 +83,9 @@ public Result[] decodeMultiple(BinaryBitmap image, Map<DecodeHintType,?> hints)
result.putMetadata(ResultMetadataType.STRUCTURED_APPEND_PARITY,
decoderResult.getStructuredAppendParity());
}
+ // Fix SYMBOLOGY_IDENTIFIER loss in QRCodeMultiReader
+ result.putMetadata(ResultMetadataType.SYMBOLOGY_IDENTIFIER, "]Q" + decoderResult.getSymbologyModifier());
+
results.add(result);
} catch (ReaderException re) {
// ignore and continue
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。