12345678910111213141516171819202122232425262728293031323334353637 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using System;
- /// <summary>
- /// 游戏主界面信息
- /// </summary>
- public class GameMainVo
- {
- public GameMainVo()
- {
- }
- /// <summary>
- /// 是否推送限时活动礼包信息
- /// </summary>
- public bool isLimitTsActive
- {
- get
- {
- long starTs = long.Parse(GameConfigData.Ins.globalsettings.limitTsActiveGiftStartTs.ToString());
- long endTs = long.Parse(GameConfigData.Ins.globalsettings.limitTsActiveGiftEndTs.ToString());
- TimeSpan ts = DateTime.Now - new DateTime(1970, 1, 1, 0, 0, 0, 0);
- long curTs = Convert.ToInt64(ts.TotalSeconds);
- if (starTs <= curTs && curTs < endTs)
- {
- return true;
- }
- return false;
- }
- }
- }
|