ratio must gte 0

This commit is contained in:
liuzhifei committed 2024-09-20 18:27:16 +08:00
1 parent 05db6660b2
commit c9064de677
2 files changed
+6 -4

No files matched your search

+1 -1
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
}