feat: able to add chat page link now (close #70)

This commit is contained in:
JustSong
2023-06-17 23:51:56 +08:00
parent ba89abedf0
commit d97640374c
7 changed files with 73 additions and 17 deletions

View File

@@ -63,6 +63,7 @@ func InitOptionMap() {
common.OptionMap["ModelRatio"] = common.ModelRatio2JSONString()
common.OptionMap["GroupRatio"] = common.GroupRatio2JSONString()
common.OptionMap["TopUpLink"] = common.TopUpLink
common.OptionMap["ChatLink"] = common.ChatLink
common.OptionMapRWMutex.Unlock()
loadOptionsFromDatabase()
}
@@ -191,6 +192,8 @@ func updateOptionMap(key string, value string) (err error) {
err = common.UpdateGroupRatioByJSONString(value)
case "TopUpLink":
common.TopUpLink = value
case "ChatLink":
common.ChatLink = value
case "ChannelDisableThreshold":
common.ChannelDisableThreshold, _ = strconv.ParseFloat(value, 64)
}