Forráskód Böngészése

每日签到领取后不再弹出

zhangyuqian 1 éve
szülő
commit
ee1911af64

+ 8 - 0
GameClient/Assets/Game/HotUpdate/Data/RedDotDataManager.cs

@@ -850,6 +850,14 @@ namespace GFGGame
             return !MathUtil.isBitSet(GameGlobal.myNumericComponent.GetAsLong(NumericType.SignDay), TimeUtil.GetCurDay());
         }
         /// <summary>
+        /// 每日签到-是否签到
+        /// </summary>
+        /// <returns></returns>
+        public bool DailySignGot()
+        {
+           return !MathUtil.isBitSet(GameGlobal.myNumericComponent.GetAsLong(NumericType.SignDay), TimeUtil.GetCurDay());
+        }
+        /// <summary>
         /// 福利大厅-每日补给
         /// </summary>
         /// <returns></returns>

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/MainUI/MainUIView.cs

@@ -1066,7 +1066,7 @@ namespace GFGGame
             }
             if (GameGlobal.AutoDailySignView)
             {
-                if (RedDotDataManager.Instance.DailySignRed())
+                if (RedDotDataManager.Instance.DailySignGot())
                 {
                     ViewManager.Show<DailySignView>(new object[] { 1 });
                     return;