MaiXinRong 2 месяцев назад
Родитель
Сommit
16a8f1fdb3
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/extend/helper.js

+ 1 - 1
app/extend/helper.js

@@ -488,7 +488,7 @@ module.exports = {
             const result = codePath[0].match(numReg);
             const num = parseInt(result[0]);
             return this.mul(this.div(num, 100, 0), 100) + '';
-        } else if (codePath.length > 2 && reg.test(codePath[1])) {
+        } else if (codePath.length >= 2 && reg.test(codePath[1])) {
             const numReg = /[0-9]{3,4}$/;
             const result = codePath[1].match(numReg);
             const num = parseInt(result[0]);