Exemplo n.º 1
0
        /// <summary>
        /// 计算用户可抽奖次数
        /// </summary>
        /// <param name="activityModel"></param>
        /// <returns></returns>
        public int GetParticipationCount(WeiActivityModel activityModel)
        {
            int participationCount = WeiActivityApplication.GetWinModel(activityModel);

            if (participationCount != -1)
            {
                return(activityModel.participationCount - participationCount);
            }
            else
            {
                return(participationCount);
            }
        }