服务端(Go): - GM 塞背包/带属性装备发放:在线角色推送 op14 增量物品行,背包实时刷新,无需回角色选择界面 - GM 改金币/改等级:去掉在线拒绝,落库后推送 op14 钱包/op37 等级状态,在线实时刷新 - 等级端点统一切换到新版 GMSetCharacterLevel(自带在线刷新) - 无限/锁死疲劳模式 + 燃烧疲劳:每房间消耗 2 点、打怪与通关经验双倍 - 燃烧疲劳开关时给所有在线角色推送系统提示(op12 mode 0) - 深渊史诗掉率:GM 全局倍率 + 城镇增益药剂窗口倍率,真实接入掉落结算 启动器(Python/JS): - 标题栏自绘、窗口 1204x717、禁止拖拽改大小、仅最小化/关闭 - GM 工具:疲劳与燃烧、深渊史诗掉率、拍卖行上架(单一定价对齐) - 拍卖行上架前端对齐服务端单一价格语义,修复 400 报错
96 lines
3.0 KiB
Go
96 lines
3.0 KiB
Go
package config
|
|
|
|
func (c ServiceConfig) Redacted() ServiceConfig {
|
|
redacted := c
|
|
if redacted.Admin.Token != "" {
|
|
redacted.Admin.Token = "[redacted]"
|
|
}
|
|
if len(redacted.Admin.Tokens) > 0 {
|
|
redacted.Admin.Tokens = append([]AdminTokenSection(nil), redacted.Admin.Tokens...)
|
|
for idx := range redacted.Admin.Tokens {
|
|
if len(redacted.Admin.Tokens[idx].Scopes) > 0 {
|
|
redacted.Admin.Tokens[idx].Scopes = append([]string(nil), redacted.Admin.Tokens[idx].Scopes...)
|
|
}
|
|
if redacted.Admin.Tokens[idx].Token != "" {
|
|
redacted.Admin.Tokens[idx].Token = "[redacted]"
|
|
}
|
|
}
|
|
}
|
|
if redacted.Gateway.AuthToken != "" {
|
|
redacted.Gateway.AuthToken = "[redacted]"
|
|
}
|
|
if redacted.Gateway.LoginToken != "" {
|
|
redacted.Gateway.LoginToken = "[redacted]"
|
|
}
|
|
if redacted.Gateway.SessionKeyMasterSecret != "" {
|
|
redacted.Gateway.SessionKeyMasterSecret = "[redacted]"
|
|
}
|
|
if redacted.ProfileStore.StorePassword != "" {
|
|
redacted.ProfileStore.StorePassword = "[redacted]"
|
|
}
|
|
if redacted.ProfileStore.SummaryStorePassword != "" {
|
|
redacted.ProfileStore.SummaryStorePassword = "[redacted]"
|
|
}
|
|
if redacted.ProfileStore.MySQLDSN != "" {
|
|
redacted.ProfileStore.MySQLDSN = "[redacted]"
|
|
}
|
|
if len(redacted.ProfileStore.MySQLShards) > 0 {
|
|
redacted.ProfileStore.MySQLShards = append([]ProfileMySQLShard(nil), redacted.ProfileStore.MySQLShards...)
|
|
for idx := range redacted.ProfileStore.MySQLShards {
|
|
if redacted.ProfileStore.MySQLShards[idx].DSN != "" {
|
|
redacted.ProfileStore.MySQLShards[idx].DSN = "[redacted]"
|
|
}
|
|
}
|
|
}
|
|
if redacted.Idempotency.RedisPassword != "" {
|
|
redacted.Idempotency.RedisPassword = "[redacted]"
|
|
}
|
|
if redacted.Idempotency.MySQLDSN != "" {
|
|
redacted.Idempotency.MySQLDSN = "[redacted]"
|
|
}
|
|
if redacted.Registry.RedisPassword != "" {
|
|
redacted.Registry.RedisPassword = "[redacted]"
|
|
}
|
|
if redacted.Bus.RedisPassword != "" {
|
|
redacted.Bus.RedisPassword = "[redacted]"
|
|
}
|
|
if redacted.Bus.NATSToken != "" {
|
|
redacted.Bus.NATSToken = "[redacted]"
|
|
}
|
|
if redacted.Bus.NATSPassword != "" {
|
|
redacted.Bus.NATSPassword = "[redacted]"
|
|
}
|
|
if redacted.Bus.NATSCredentials != "" {
|
|
redacted.Bus.NATSCredentials = "[redacted]"
|
|
}
|
|
if redacted.EventLog.MySQLDSN != "" {
|
|
redacted.EventLog.MySQLDSN = "[redacted]"
|
|
}
|
|
if redacted.AccountCenter.MySQLDSN != "" {
|
|
redacted.AccountCenter.MySQLDSN = "[redacted]"
|
|
}
|
|
if redacted.EventLog.PublishHTTPURL != "" {
|
|
redacted.EventLog.PublishHTTPURL = "[redacted]"
|
|
}
|
|
if len(redacted.EventLog.PublishHTTPHeaders) > 0 {
|
|
headers := make(map[string]string, len(redacted.EventLog.PublishHTTPHeaders))
|
|
for key := range redacted.EventLog.PublishHTTPHeaders {
|
|
headers[key] = "[redacted]"
|
|
}
|
|
redacted.EventLog.PublishHTTPHeaders = headers
|
|
}
|
|
if redacted.Cache.RedisPassword != "" {
|
|
redacted.Cache.RedisPassword = "[redacted]"
|
|
}
|
|
if redacted.Lock.RedisPassword != "" {
|
|
redacted.Lock.RedisPassword = "[redacted]"
|
|
}
|
|
if redacted.Presence.RedisPassword != "" {
|
|
redacted.Presence.RedisPassword = "[redacted]"
|
|
}
|
|
if redacted.StorageObject.MySQLDSN != "" {
|
|
redacted.StorageObject.MySQLDSN = "[redacted]"
|
|
}
|
|
return redacted
|
|
}
|