From 0b3520e3c85fd79e7f6b98dd4a61dda30172db9e Mon Sep 17 00:00:00 2001 From: CaIon <1808837298@qq.com> Date: Sat, 23 Mar 2024 23:21:14 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E6=A8=A1=E5=9E=8B=E5=80=8D=E7=8E=87=E6=9C=AA=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/option.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/model/option.go b/model/option.go index 6483e26..8e34098 100644 --- a/model/option.go +++ b/model/option.go @@ -78,8 +78,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 From 6eb30ec3e6dc856807f23f67214aabb4381929c7 Mon Sep 17 00:00:00 2001 From: CaIon <1808837298@qq.com> Date: Sat, 23 Mar 2024 23:24:17 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20=E6=A8=A1=E5=9E=8B=E5=80=8D=E7=8E=87?= =?UTF-8?q?=E5=92=8C=E4=BB=B7=E6=A0=BC=E6=97=A0=E6=B3=95=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/option.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/model/option.go b/model/option.go index 8e34098..46e41da 100644 --- a/model/option.go +++ b/model/option.go @@ -271,11 +271,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