From e402917a85b8c5f5160ffa7645cf1a1557e1f50d Mon Sep 17 00:00:00 2001 From: hahwu <31872165+hahwu@users.noreply.github.com> Date: Wed, 16 Jul 2025 17:13:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/server/game/mod/base/Base.go | 2 +- src/server/game/mod/compensation/compensation.go | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/server/game/mod/base/Base.go b/src/server/game/mod/base/Base.go index 63a10213..e1b83caa 100644 --- a/src/server/game/mod/base/Base.go +++ b/src/server/game/mod/base/Base.go @@ -52,7 +52,7 @@ func (b *Base) InitData(Uid int, Ip string) { if CountryCode == "" { CountryCode = "000" } - if Code != "" { + if Code != "" && len(Code) == 3 { CountryCode = Code } b.AddCode = fmt.Sprintf("MMM-%s-%s", CountryCode, GoUtil.UniqueStringFromInt(Uid)) diff --git a/src/server/game/mod/compensation/compensation.go b/src/server/game/mod/compensation/compensation.go index 89dfa483..32000fa8 100644 --- a/src/server/game/mod/compensation/compensation.go +++ b/src/server/game/mod/compensation/compensation.go @@ -22,13 +22,10 @@ func (c *Compensation) Set20250716() { } func (c *Compensation) Compensation20250716(UserName string) []*item.Item { - if !c.Is20250716() { - return nil - } c.Set20250716() // 获取补偿物品 items := make([]*item.Item, 0, len(Compensation20250716_UserList)) - for i := 0; i < len(Compensation20250716_UserList); i++ { + for i := 1; i <= len(Compensation20250716_UserList); i++ { if GoUtil.InStringArray(UserName, Compensation20250716_UserList[i]) { return Compensation20250716_Mail_Item[i] } @@ -61,7 +58,7 @@ type MailConfig struct { } var Compensation20250716_Mail_Config = MailConfig{ - Title: "Update Issue and Compensation Notice", + Title: "Update Issue reply", Content: `Dear players, sorry about the update issues due to our release process and strategy changes—some even lost data. We take this issue very seriously. We truly appreciate your support, so we've prepared a special compensation just for you. Please check it We're already working on fixing things to make future updates smoother and more stable.