diff --git a/model/option.go b/model/option.go index 28f277d..f8f10e1 100644 --- a/model/option.go +++ b/model/option.go @@ -82,8 +82,8 @@ func InitOptionMap() { common.OptionMap["QuotaForInvitee"] = strconv.Itoa(common.QuotaForInvitee) common.OptionMap["QuotaRemindThreshold"] = strconv.Itoa(common.QuotaRemindThreshold) common.OptionMap["PreConsumedQuota"] = strconv.Itoa(common.PreConsumedQuota) - common.OptionMap["modelRatio"] = common.ModelRatio2JSONString() - common.OptionMap["modelPrice"] = common.ModelPrice2JSONString() + common.OptionMap["ModelRatio"] = common.ModelRatio2JSONString() + common.OptionMap["ModelPrice"] = common.ModelPrice2JSONString() common.OptionMap["GroupRatio"] = common.GroupRatio2JSONString() common.OptionMap["TopUpLink"] = common.TopUpLink common.OptionMap["ChatLink"] = common.ChatLink @@ -283,11 +283,11 @@ func updateOptionMap(key string, value string) (err error) { common.DataExportInterval, _ = strconv.Atoi(value) case "DataExportDefaultTime": common.DataExportDefaultTime = value - case "modelRatio": + case "ModelRatio": err = common.UpdateModelRatioByJSONString(value) case "GroupRatio": err = common.UpdateGroupRatioByJSONString(value) - case "modelPrice": + case "ModelPrice": err = common.UpdateModelPriceByJSONString(value) case "TopUpLink": common.TopUpLink = value