Merge pull request #715 from aaronuu/v5-dev

bug fix #714
This commit is contained in:
Golden Looly 2020-01-09 10:23:57 +08:00 committed by GitHub
commit 453cfbcc6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,7 +102,10 @@ public class NumberChineseFormatter {
// 如果""的部分不为 0, ""前面的部分小于 1000 大于 0 则万后面应该跟
chineseStr.insert(0, "");
}
chineseStr.insert(0, "");
if (parts[i] > 0) {
// 如果""的部分不为 0 则增加万
chineseStr.insert(0, "");
}
}
}
}