ratio must gte 0

This commit is contained in:
liuzhifei
2024-09-20 18:27:16 +08:00
parent 1d064a2e88
commit 3d33079de0
2 changed files with 6 additions and 4 deletions

View File

@@ -35,7 +35,7 @@ func GetGroupRatio(name string) float64 {
func CheckGroupRatio(jsonStr string) error {
checkGroupRatio := make(map[string]float64)
err := json.Unmarshal([]byte(jsonStr), &GroupRatio)
err := json.Unmarshal([]byte(jsonStr), &checkGroupRatio)
if err != nil {
return err
}