util-helpers 4.8.1 → 4.8.2

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.
@@ -403,7 +403,7 @@
403
403
  // 计算整数求余函数MOD
404
404
  const remainder = total % 31;
405
405
  // 校验码字符值序号
406
- const checkCodeIndex = 31 - remainder;
406
+ const checkCodeIndex = remainder !== 0 ? 31 - remainder : 0;
407
407
 
408
408
  return baseCodeArr[checkCodeIndex];
409
409
  }