w-ui-v1 1.1.18 → 1.1.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/utils/nfc.ts +2 -3
package/package.json
CHANGED
package/utils/nfc.ts
CHANGED
|
@@ -214,15 +214,14 @@ function __read(intent) {
|
|
|
214
214
|
|
|
215
215
|
function bytesToDecimalString(inarray) {
|
|
216
216
|
let result = BigInt(0);
|
|
217
|
-
|
|
217
|
+
|
|
218
218
|
// 反转数组以适配大端序
|
|
219
219
|
const reversed = [...inarray].reverse();
|
|
220
220
|
for (let j = 0; j < reversed.length; j++) {
|
|
221
221
|
const byte = BigInt(parseInt(reversed[j])) & BigInt(0xff);
|
|
222
|
-
resultStr=resultStr+((result << BigInt(8)) | byte)
|
|
223
222
|
result = (result << BigInt(8)) | byte;
|
|
224
223
|
}
|
|
225
|
-
return
|
|
224
|
+
return result.toString().padStart(10, '0');
|
|
226
225
|
}
|
|
227
226
|
|
|
228
227
|
|