mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-09-29 22:56:39 +08:00
修复group为空
This commit is contained in:
parent
30776b55f0
commit
e84c0c4bf6
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user