コード例 #1
0
 public override Task Execute()
 {
     return(new Task(() =>
     {
         //SysBLL.Log("start job");
         var fetchedSSCCount = Wx.Common.Helpers.SSCHelper.FetchSSC(DateTime.Now.Date).Where(r => !string.IsNullOrWhiteSpace(r.no)).Count();
         if (fetchedSSCCount == LastFetchedSSCCount)
         {
             return;
         }
         SysBLL.Log("start resolve");
         LastFetchedSSCCount = fetchedSSCCount;
         var rbll = new RouletteBLL();
         rbll.Resolve(true);
     }));
 }
コード例 #2
0
        public object Submit(SubmiRouletteParam param)
        {
            if (param.golds > 3000)
            {
                return new ReturnMessage {
                           success = false, message = "最多投注3000金币"
                }
            }
            ;
            using (var dc = new DC())
            {
                var userId = CurrentUser.userId;

                var rbll = new RouletteBLL();
                rbll.Submit(userId, param.selectPropertyIds, param.golds, GameType.id);
                var data = new { };
                UpdateCurrentUser();
                return(new ReturnMessage {
                    success = true, message = "投注成功。", data = data
                });
            }
        }
コード例 #3
0
        public void Resolve()
        {
            var rbll = new RouletteBLL();

            rbll.Resolve(true);
        }