优化
This commit is contained in:
parent
8a1461d4af
commit
e402917a85
@ -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))
|
||||
|
||||
@ -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.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user