|
@@ -176,6 +176,7 @@ namespace GFGGame
|
|
|
EventAgent.AddEventListener(ConstMessage.CHANGE_ROLE_HEAD, UpdateHead);
|
|
|
EventAgent.AddEventListener(ConstMessage.RESET_DAILY_DATA, ResetDailyData);
|
|
|
EventAgent.AddEventListener(ConstMessage.AFU_GIFT_CHANGED, ChangeAfuActivityState);
|
|
|
+ EventAgent.AddEventListener(ConstMessage.SEVENDAY_LOGIN, SevenDayLoginShow);
|
|
|
}
|
|
|
|
|
|
|
|
@@ -213,25 +214,7 @@ namespace GFGGame
|
|
|
|
|
|
//long lastTime = GameGlobal.lastLoginTime; // GameGlobal.myNumericComponent.GetAsInt(NumericType.OnlineTimeSecs);
|
|
|
|
|
|
- //if (!TimeUtil.CheckIsSameTime(lastTime * 1000, TimeHelper.ClientNow()))
|
|
|
- ET.Log.Debug("zyq"+ GameGlobal.isLogon);
|
|
|
- if (GameGlobal.isLogon)
|
|
|
- {
|
|
|
- ET.Log.Debug("zyq" + GameGlobal.isLogon);
|
|
|
- ET.Log.Debug("zyq" + ActivityDataManager.Instance.sevenDayLoginBonusStatusList.Count + ":::" + GuideDataManager.currentGuideId);
|
|
|
- if (ActivityDataManager.Instance.CanGetSevenDayBonus() &&
|
|
|
- GuideDataManager.currentGuideId <= 0)
|
|
|
- {
|
|
|
- ViewManager.Show<SevenDayLoginView>();
|
|
|
-
|
|
|
- }
|
|
|
- else if (RedDotDataManager.Instance.DailySignRed())
|
|
|
- {
|
|
|
- ViewManager.Show<DailySignView>(new object[] { 1 });
|
|
|
- }
|
|
|
|
|
|
- //GameGlobal.lastLoginTime = GameGlobal.myNumericComponent.GetAsInt(NumericType.OnlineTimeSecs);
|
|
|
- }
|
|
|
|
|
|
SetPos();
|
|
|
GetAdIds();
|
|
@@ -274,6 +257,7 @@ namespace GFGGame
|
|
|
EventAgent.RemoveEventListener(ConstMessage.RED_CHANGE, UpdateRedDot);
|
|
|
EventAgent.RemoveEventListener(ConstMessage.CHANGE_ROLE_HEAD, UpdateHead);
|
|
|
EventAgent.RemoveEventListener(ConstMessage.AFU_GIFT_CHANGED, ChangeAfuActivityState);
|
|
|
+ EventAgent.RemoveEventListener(ConstMessage.SEVENDAY_LOGIN, SevenDayLoginShow);
|
|
|
}
|
|
|
|
|
|
private void AddEffect()
|
|
@@ -1197,5 +1181,25 @@ namespace GFGGame
|
|
|
{
|
|
|
_ui.m_btnActivityAfuGift.target.visible = ActivityAfuGiftDataManager.Instance.IsOpen;
|
|
|
}
|
|
|
+
|
|
|
+ private void SevenDayLoginShow()
|
|
|
+ {
|
|
|
+ //if (!TimeUtil.CheckIsSameTime(lastTime * 1000, TimeHelper.ClientNow()))
|
|
|
+ if (GameGlobal.isLogon)
|
|
|
+ {
|
|
|
+ if (ActivityDataManager.Instance.CanGetSevenDayBonus() &&
|
|
|
+ GuideDataManager.currentGuideId <= 0)
|
|
|
+ {
|
|
|
+ ViewManager.Show<SevenDayLoginView>();
|
|
|
+
|
|
|
+ }
|
|
|
+ else if (RedDotDataManager.Instance.DailySignRed())
|
|
|
+ {
|
|
|
+ ViewManager.Show<DailySignView>(new object[] { 1 });
|
|
|
+ }
|
|
|
+
|
|
|
+ //GameGlobal.lastLoginTime = GameGlobal.myNumericComponent.GetAsInt(NumericType.OnlineTimeSecs);
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|