소스 검색

每日签到领取后不再弹出

zhangyuqian 1 년 전
부모
커밋
ee1911af64
2개의 변경된 파일9개의 추가작업 그리고 1개의 파일을 삭제
  1. 8 0
      GameClient/Assets/Game/HotUpdate/Data/RedDotDataManager.cs
  2. 1 1
      GameClient/Assets/Game/HotUpdate/Views/MainUI/MainUIView.cs

+ 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;