修复group为空

This commit is contained in:
jau1 2024-01-22 19:07:34 +08:00
parent 30776b55f0
commit e84c0c4bf6

View File

@ -13,7 +13,7 @@ func SaleRatio2JSONString() string {
}
func UpdateSaleRatioByJSONString(jsonStr string) error {
GroupRatio = make(map[string]float64)
SaleRatio = make(map[string]float64)
return json.Unmarshal([]byte(jsonStr), &SaleRatio)
}