(jsonStr string)
| 19 | } |
| 20 | |
| 21 | func UpdateTopupGroupRatioByJSONString(jsonStr string) error { |
| 22 | TopupGroupRatio = make(map[string]float64) |
| 23 | return json.Unmarshal([]byte(jsonStr), &TopupGroupRatio) |
| 24 | } |
| 25 | |
| 26 | func GetTopupGroupRatio(name string) float64 { |
| 27 | ratio, ok := TopupGroupRatio[name] |