mirror of
https://github.com/linux-do/new-api.git
synced 2025-11-09 23:53:41 +08:00
add epay
This commit is contained in:
@@ -69,6 +69,10 @@ func InitOptionMap() {
|
||||
common.OptionMap["ChatLink"] = common.ChatLink
|
||||
common.OptionMap["QuotaPerUnit"] = strconv.FormatFloat(common.QuotaPerUnit, 'f', -1, 64)
|
||||
common.OptionMap["RetryTimes"] = strconv.Itoa(common.RetryTimes)
|
||||
common.OptionMap["NormalPrice"] = strconv.FormatFloat(common.NormalPrice, 'f', -1, 64)
|
||||
common.OptionMap["StablePrice"] = strconv.FormatFloat(common.StablePrice, 'f', -1, 64)
|
||||
common.OptionMap["BasePrice"] = strconv.FormatFloat(common.BasePrice, 'f', -1, 64)
|
||||
|
||||
common.OptionMapRWMutex.Unlock()
|
||||
loadOptionsFromDatabase()
|
||||
}
|
||||
@@ -207,6 +211,12 @@ func updateOptionMap(key string, value string) (err error) {
|
||||
common.TopUpLink = value
|
||||
case "ChatLink":
|
||||
common.ChatLink = value
|
||||
case "NormalPrice":
|
||||
common.NormalPrice, _ = strconv.ParseFloat(value, 64)
|
||||
case "BasePrice":
|
||||
common.BasePrice, _ = strconv.ParseFloat(value, 64)
|
||||
case "StablePrice":
|
||||
common.StablePrice, _ = strconv.ParseFloat(value, 64)
|
||||
case "ChannelDisableThreshold":
|
||||
common.ChannelDisableThreshold, _ = strconv.ParseFloat(value, 64)
|
||||
case "QuotaPerUnit":
|
||||
|
||||
Reference in New Issue
Block a user