From 68ceec72d78d328f9eaa05fce40caf99fe333ba1 Mon Sep 17 00:00:00 2001 From: yyl <yyl> Date: 星期六, 11 十月 2025 19:21:30 +0800 Subject: [PATCH] Merge branch 'master' of http://192.168.1.20:10010/r/Project_SG_scripts --- Main/System/Mail/MailManager.cs | 14 +++++--------- 1 files changed, 5 insertions(+), 9 deletions(-) diff --git a/Main/System/Mail/MailManager.cs b/Main/System/Mail/MailManager.cs index 2c3a8ff..477112c 100644 --- a/Main/System/Mail/MailManager.cs +++ b/Main/System/Mail/MailManager.cs @@ -22,16 +22,12 @@ public readonly string dateFormat = "yyyy.MM.dd"; public string nowUuid = string.Empty; public int personalMailMaxLimitCount; + + public override void Init() { - if (tabRedpoint0 == null) - { - tabRedpoint0 = new Redpoint(MainRedDot.MailRepoint, GetTabRedpointId(MailCategory.Personal)); - } - if (tabRedpoint1 == null) - { - tabRedpoint1 = new Redpoint(MainRedDot.MailRepoint, GetTabRedpointId(MailCategory.Global)); - } + tabRedpoint0 = new Redpoint(MainRedDot.MailRepoint, GetTabRedpointId(MailCategory.Personal)); + tabRedpoint1 = new Redpoint(MainRedDot.MailRepoint, GetTabRedpointId(MailCategory.Global)); DTC0102_tagCDBPlayer.beforePlayerDataInitializeEvent += OnBeforePlayerDataInitializeEvent; personalMailMaxLimitCount = int.Parse(FuncConfigConfig.Get("PersonalMail").Numerical1); } @@ -143,7 +139,7 @@ { // 灏忎簬1澶╋紙浣嗘湭杩囨湡锛夛細鎸夌簿纭殑灏忔椂/鍒嗛挓鏄剧ず銆� TimeSpan t = TimeSpan.FromDays(days); - result = Language.Get("Mail12",StringUtility.Contact( " ", Language.Get("Mail13", t.Hours, t.Minutes))); + result = Language.Get("Mail12", StringUtility.Contact(" ", Language.Get("Mail13", t.Hours, t.Minutes))); } else { -- Gitblit v1.8.0