1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- using XGame.Database;
- using XGame.Framework.Interfaces;
- namespace FL.Data
- {
- public class SummonSbInfo
- {
- /// <summary>
- /// 抽奖等级
- /// </summary>
- public int Level;
- /// <summary>
- /// 抽奖经验
- /// </summary>
- public int Exp;
- /// <summary>
- /// 当前保底次数
- /// </summary>
- public int Baodi;
- /// <summary>
- /// 今天看广告次数
- /// </summary>
- public int Kind11;
- /// <summary>
- /// 今日分享次数
- /// </summary>
- public int Share;
- /// <summary>
- /// 今日免费单抽抽奖次数
- /// </summary>
- public int FreeNum;
- public int FreeRemain => _drawTable.Freeware - FreeNum;
- /// <summary>
- /// 今日看广告剩余次数
- /// </summary>
- public int RemainKindCount => KindMax - Kind11;
- public int KindMax => _drawTable.AdNumber[0];
- public int RemainShareCount => ShareMax - Share;
- public int ShareMax => _drawTable.ShareNumber[0];
- public int OneCostId => _drawTable.Cost[1];
- public int OneCostNum => _drawTable.Cost[0];
- public int OneDrawNum => _drawTable.Cost[2];
- public int TenCostId => _drawTable.Cost[4];
- public int TenCostNum => _drawTable.Cost[3];
- public int TenDrawNum => _drawTable.Cost[5];
- private raffleTable _drawTable;
- public SummonSbInfo()
- {
- _drawTable = raffleTableRepo.GetDrawInfoByType(1);
- }
- }
- }
|