Sfoglia il codice sorgente

fix: 模型倍率和价格无法设置

CaIon 1 anno fa
parent
commit
6eb30ec3e6
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      model/option.go

+ 2 - 2
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