|
|
@@ -25,12 +25,14 @@ func BankStore(c *gin.Context) { |
|
|
|
} |
|
|
|
storeList := make([]map[string]interface{}, 0) |
|
|
|
for _, v := range store { |
|
|
|
km := v["km"] |
|
|
|
if utils.StrToFloat64(v["km"]) < 1 { |
|
|
|
v["km"] = utils.IntToStr(int(utils.StrToFloat64(v["km"])*1000)) + "m" |
|
|
|
} else { |
|
|
|
v["km"] = GetCommissionPrec(c, v["km"], "2", "1") |
|
|
|
v["km"] += "km" |
|
|
|
} |
|
|
|
if utils.StrToFloat64(v["km"]) <= 0 { |
|
|
|
if utils.StrToFloat64(km) <= 0 { |
|
|
|
v["km"] = "-" |
|
|
|
} |
|
|
|
tmp := map[string]interface{}{ |
|
|
@@ -73,6 +75,7 @@ func Store(c *gin.Context) { |
|
|
|
if utils.StrToFloat64(v["km"]) < 1 { |
|
|
|
v["km"] = utils.IntToStr(int(utils.StrToFloat64(v["km"])*1000)) + "m" |
|
|
|
} else { |
|
|
|
v["km"] = GetCommissionPrec(c, v["km"], "2", "1") |
|
|
|
v["km"] += "km" |
|
|
|
} |
|
|
|
label := make([]string, 0) |
|
|
|