fix:订单详情

This commit is contained in:
momo
2023-09-21 12:11:15 +08:00
parent 37fc648025
commit 30ae7eb814
11 changed files with 178 additions and 35 deletions

View File

@@ -16,3 +16,9 @@ func CentitoDollar(price int64, remainFloatPoint ...uint) float64 {
dollar, _ := strconv.ParseFloat(str, 64)
return dollar
}
// 厘转美元
func CentitoDollarStr(price int64) string {
s := "%.2f"
return fmt.Sprintf(s, float64(price)/float64(1000))
}