using System; using System.Collections.Generic; using System.IO; using ET; using FairyGUI; using UnityEngine; namespace GFGGame { public class PoemGalleryDataManager : SingletonBase { private long _themeOrder = 0; /// /// 主题期数 /// public long ThemeOrder { get { return _themeOrder; } set { _themeOrder = value; } } private long _themeId = 1; /// /// 主题配置id /// public long ThemeId { get { return _themeId; } set { _themeId = value; } } private long _myRank = 0; /// /// 我的最高排行 /// public long MyRank { get { return _myRank; } set { _myRank = value; } } private long _voteCount = 0; /// /// 我的最高排行 /// public long VoteCount { get { return _voteCount; } set { _voteCount = value; } } /// /// 推荐数据 /// public List RecommendDatas = new List(); /// /// 最新数据 /// public List NewestDatas = new List(); /// /// 好友数据 /// public List FrinedDatas = new List(); /// /// 收藏数据 /// public List FavoriteDatas = new List(); /// /// 我的作品数据 /// public List MySelfDatas = new List(); /// /// 排行榜数据 /// public List RankDatas = new List(); public void Clear() { RecommendDatas.Clear(); FrinedDatas.Clear(); FavoriteDatas.Clear(); MySelfDatas.Clear(); RankDatas.Clear(); } public string GetThemeTime() { long monday = TimeUtil.GetCurWeekMondayTime(GlobalCfgArray.globalCfg.refreshTime);//本周一5点 long startTime = 0; long endTime = 0; if ((TimeInfo.Instance.ServerNow() / 1000) < monday)//本周一5点之前显示上周 { startTime = TimeUtil.GetLastWeekMondayTime(GlobalCfgArray.globalCfg.refreshTime); endTime = TimeUtil.GetLastWeekSundayTime("23:59:59"); } else { startTime = monday * 1000; endTime = TimeUtil.GetCurWeekSundayTime("23:59:59") * 1000; ; } string strStartTime = TimeUtil.FormattingTime3(startTime); string strEndTime = TimeUtil.FormattingTime3(endTime); ; return string.Format("截止日期:{0}至{1}", strStartTime, strEndTime); } } }