体重使用稳定值,移除金额校验
This commit is contained in:
@@ -87,7 +87,7 @@ fun Float?.toSafeFloat(decimalPlaces: Int = 2): Float {
|
||||
*/
|
||||
private fun getDecimalPlaces(unitName: String?): Int {
|
||||
val decimalPlaces = when (unitName) {
|
||||
"斤", "克", "公斤", "升" -> 2
|
||||
"斤", "公斤", "升" -> 2
|
||||
else -> 0
|
||||
}
|
||||
return decimalPlaces
|
||||
|
||||
Reference in New Issue
Block a user