Пример #1
0
        void GetDailycupData(DailycupFullDataEntity dailycupData, Guid managerId, int beginRound, int endRound)
        {
            try
            {
                List <DailycupMatchEntity> matchlist = DailycupMatchMgr.GetMatchByRound(dailycupData.DailycupId, beginRound, endRound);
                var manager        = ManagerCore.Instance.GetManager(managerId);
                var gambleCountMax = CacheFactory.VipdicCache.GetEffectValue(manager.VipLevel, EnumVipEffect.DailycupGambleCount);
                //BuffPlusHelper.DailycupGambleCount(ref gambleCountMax);
                dailycupData.GambleCountMax = gambleCountMax;
                dailycupData.MyGambleData   = DailycupGambleMgr.GetMyGamebleData(dailycupData.DailycupId, managerId);
                if (dailycupData.MyGambleData != null)
                {
                    foreach (var entity in dailycupData.MyGambleData)
                    {
                        entity.TimeTick = ShareUtil.GetTimeTick(entity.RowTime);
                    }
                }
                foreach (var entity in matchlist)
                {
                    entity.RoundType = CalRoundType(entity.Round, beginRound);
                }

                dailycupData.Matchs = matchlist;
            }
            catch (Exception ex)
            {
                SystemlogMgr.Error("doGetDailycupData", ex);
            }
        }
Пример #2
0
        /// <summary>
        /// 开奖
        /// </summary>
        /// <param name="dailycupId">The dailycup id.</param>
        /// <param name="round">比赛轮次</param>
        public static void OpenGamble(int dailycupId, int round)
        {
            List <DailycupMatchEntity> listMatch = DailycupMatchMgr.GetMatchByRound(dailycupId, round, round);

            foreach (var match in listMatch)
            {
                OpenGamble(match);
            }
        }