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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/utils/nfc.ts +2 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "w-ui-v1",
3
- "version": "1.1.18",
3
+ "version": "1.1.19",
4
4
  "description": "w-ui",
5
5
  "author": "wgxshh",
6
6
  "license": "ISC",
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
- let resultStr=""
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 resultStr;
224
+ return result.toString().padStart(10, '0');
226
225
  }
227
226
 
228
227