From 2f7dfdbfc0d6ca47820a5de946ed1adde5cd4903 Mon Sep 17 00:00:00 2001
From: lcy <1459594991@qq.com>
Date: 星期五, 30 一月 2026 11:51:01 +0800
Subject: [PATCH] 449 使用代金卷购买礼包的二次确认弹窗,不再有本次登陆不再提示的勾选框

---
 Main/System/MainLevel/MainLevelManager.cs |   17 ++++++++++++++++-
 1 files changed, 16 insertions(+), 1 deletions(-)

diff --git a/Main/System/MainLevel/MainLevelManager.cs b/Main/System/MainLevel/MainLevelManager.cs
index 492f4ea..0bebb67 100644
--- a/Main/System/MainLevel/MainLevelManager.cs
+++ b/Main/System/MainLevel/MainLevelManager.cs
@@ -53,5 +53,20 @@
 
         return true;
     }
-	
+
+    //levelID 涓哄鎴风閰嶇疆鐨処D
+    public bool IsPassedByMainLevelID(int levelID)
+    {
+        var value = PlayerDatas.Instance.baseData.ExAttr1;
+        var chapterID = value / 10000;
+        var levelNum = value % 10000 / 100;
+
+        var config = MainLevelConfig.Get(levelID);
+        if (chapterID > config.ChapterID || (chapterID == config.ChapterID && levelNum > config.LevelNum))
+        {
+            return true;
+        }
+
+        return false;
+    }
 }
\ No newline at end of file

--
Gitblit v1.8.0