/// <summary>
 /// 查询彩种开奖号码
 /// </summary>
 /// <param name="gameCode"></param>
 /// <param name="issuseNumber"></param>
 /// <param name="userToken"></param>
 /// <returns></returns>
 public WinNumber_QueryInfo QueryWinNumber(string gameCode, string issuseNumber)
 {
     try
     {
         return(GameBizWcfServiceCache.GetWinNumber(gameCode, issuseNumber));
     }
     catch (Exception ex)
     {
         throw new Exception("查询彩种开奖号码出错 -- " + ex.Message, ex);
     }
 }
 /// <summary>
 /// 获取当前奖期信息
 /// </summary>
 public Issuse_QueryInfo QueryCurrentIssuseInfo(string gameCode)
 {
     try
     {
         return(GameBizWcfServiceCache.GetCurrentIssuserInfo(gameCode));
     }
     catch (Exception ex)
     {
         throw new Exception("查询当前奖期出错", ex);
     }
 }
 /// <summary>
 /// 查询彩种最新开奖号码
 /// </summary>
 /// <param name="gameCode"></param>
 /// <param name="userToken"></param>
 /// <returns></returns>
 public WinNumber_QueryInfo QueryNewWinNumber(string gameCode)
 {
     try
     {
         return(GameBizWcfServiceCache.GetNewWinNumber(gameCode));
     }
     catch (Exception ex)
     {
         throw new Exception("查询彩种最新开奖号码出错 -- " + ex.Message, ex);
     }
 }
 /// <summary>
 /// 查询开奖大厅
 /// </summary>
 /// <param name="userToken"></param>
 /// <returns></returns>
 public WinNumber_QueryInfoCollection QueryWinNumberAll()
 {
     try
     {
         return(GameBizWcfServiceCache.GetAllNewWinNumbers());
     }
     catch (Exception ex)
     {
         throw new Exception("查询开奖大厅出错 --" + ex.Message, ex);
     }
 }
 /// <summary>
 /// 根据期数查询开奖历史
 /// </summary>
 /// <param name="gameCode"></param>
 /// <param name="count"></param>
 /// <param name="userToken"></param>
 /// <returns></returns>
 public WinNumber_QueryInfoCollection QueryWinNumberHistoryByCount(string gameCode, int count)
 {
     try
     {
         return(GameBizWcfServiceCache.QueryWinNumberHistoryByCount(gameCode, count));
     }
     catch (Exception ex)
     {
         throw new Exception("查询开奖历史出错 - " + ex.Message, ex);
     }
 }
 /// <summary>
 /// 查询开奖历史
 /// </summary>
 /// <param name="gameCode"></param>
 /// <param name="startTime"></param>
 /// <param name="endTime"></param>
 /// <param name="pageIndex"></param>
 /// <param name="pageSize"></param>
 /// <param name="userToken"></param>
 /// <returns></returns>
 public WinNumber_QueryInfoCollection QueryWinNumberHistory(string gameCode, DateTime startTime, DateTime endTime, int pageIndex, int pageSize)
 {
     try
     {
         return(GameBizWcfServiceCache.QueryWinNumberHistory(gameCode, startTime, endTime, pageIndex, pageSize));
     }
     catch (Exception ex)
     {
         throw new Exception("查询开奖历史出错 -- " + ex.Message, ex);
     }
 }
 /// <summary>
 /// 设置最新开奖号码
 /// </summary>
 /// <param name="gameCode"></param>
 /// <param name="issuseNumber"></param>
 /// <param name="winNumber"></param>
 /// <param name="awardTime"></param>
 /// <param name="userToken"></param>
 /// <returns></returns>
 public CommonActionResult SetNewWinNumber(string gameCode, string issuseNumber, string winNumber, DateTime awardTime)
 {
     try
     {
         GameBizWcfServiceCache.SetNewWinNumber(gameCode, issuseNumber, winNumber, awardTime);
         return(new CommonActionResult(true, "操作成功"));
     }
     catch (Exception ex)
     {
         throw new Exception("设置最新开奖号码失败 - " + ex.Message, ex);
     }
 }
 /// <summary>
 /// 查询彩种玩法
 /// </summary>
 /// <param name="gameCode"></param>
 /// <param name="userToken"></param>
 /// <returns></returns>
 public GameTypeInfoCollection QueryGameTypeList(string gameCode, string userToken)
 {
     // 验证用户身份及权限
     //var userId = GameBizAuthBusiness.ValidateUserAuthentication(userToken);
     try
     {
         return(GameBizWcfServiceCache.GetGameType(gameCode));
     }
     catch (Exception ex)
     {
         throw new Exception("查询彩种玩法出错", ex);
     }
 }
 /// <summary>
 /// 查询所有彩种当前期号
 /// </summary>
 public LotteryIssuse_QueryInfoCollection QueryAllGameCurrentIssuse(bool byOfficial)
 {
     return(GameBizWcfServiceCache.QueryAllGameCurrentIssuse(byOfficial));
 }