From 9406f16ae0496f02adc301d6084af71240cba514 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期二, 06 一月 2026 20:26:07 +0800
Subject: [PATCH] Merge branch 'master' of http://mobile.secondworld.net.cn:10010/r/Project_SG_scripts

---
 Main/System/PlayerProfile/PlayerProfileWin.cs |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/Main/System/PlayerProfile/PlayerProfileWin.cs b/Main/System/PlayerProfile/PlayerProfileWin.cs
index 26a640e..ab17e8e 100644
--- a/Main/System/PlayerProfile/PlayerProfileWin.cs
+++ b/Main/System/PlayerProfile/PlayerProfileWin.cs
@@ -29,7 +29,12 @@
         btnSetting.SetListener(() => { UIManager.Instance.OpenWindow<SystemSetWin>(); });
         btnAnnouncement.SetListener(() => { GameNotice.OpenGameNoticeForce(); });
         btnSwitchServer.SetListener(() => { GameNetSystem.Instance.LoginOut(); });
-        btnRedemptionCode.SetListener(() => { UIManager.Instance.OpenWindow<ExchangeCodeWin>(); });
+        btnRedemptionCode.SetListener(() =>
+        {
+            if (!FuncOpen.Instance.IsFuncOpen((int)FuncOpenEnum.Mail, true))
+                return;
+            UIManager.Instance.OpenWindow<ExchangeCodeWin>();
+        });
         btnCopy.SetListener(() =>
         {
             UIHelper.CopyToClipboard(PlayerDatas.Instance.baseData.PlayerID.ToString());

--
Gitblit v1.8.0