|
@@ -34,9 +34,13 @@ namespace Assets.Game.HotUpdate.Data
|
|
|
return activityInfo.EndTime;
|
|
|
}
|
|
|
|
|
|
- public bool GetRewardRed()
|
|
|
+ public bool GetRewardRed(int id =5004)
|
|
|
{
|
|
|
- if (!ActivityTeaDataManager.Instance.CheckOpenOne(ActivityType.NewYearVisit))
|
|
|
+ ActivityOpenCfg _activityCfg = ActivityOpenCfgArray.Instance.GetCfg(id);
|
|
|
+ long endTime = TimeUtil.DateTimeToTimestamp(_activityCfg.endTime);
|
|
|
+ long startime = TimeUtil.DateTimeToTimestamp(_activityCfg.openTime);
|
|
|
+ long curTime = TimeHelper.ServerNow();
|
|
|
+ if (endTime < curTime || startime > curTime)
|
|
|
{
|
|
|
return false;
|
|
|
}
|
|
@@ -53,8 +57,16 @@ namespace Assets.Game.HotUpdate.Data
|
|
|
return false;
|
|
|
}
|
|
|
//获取华容道可用次数
|
|
|
- public bool CheckHRDRed()
|
|
|
+ public bool CheckHRDRed(int id = 5003)
|
|
|
{
|
|
|
+ ActivityOpenCfg _activityCfg = ActivityOpenCfgArray.Instance.GetCfg(id);
|
|
|
+ long endTime = TimeUtil.DateTimeToTimestamp(_activityCfg.endTime);
|
|
|
+ long curTime = TimeHelper.ServerNow();
|
|
|
+ if (endTime < curTime)
|
|
|
+ {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
RoleLimitData limitData;
|
|
|
limitData = RoleLimitDataManager.GetLimitData(300);
|
|
|
int times = limitData.TotalPlayMax - limitData.PlayTimes;
|