Esempio n. 1
0
        private void Undo()
        {
            string id       = Request.Params["betCode"];
            string catchNum = Request.Params["catchNum"];

            if (!string.IsNullOrEmpty(id))
            {
                ISysUserBalanceService userBanceService = IoC.Resolve <ISysUserBalanceService>();
                if (userBanceService.Cannel(id))
                {
                    AppGlobal.RenderResult(ApiCode.Success, "");
                }
                else
                {
                    AppGlobal.RenderResult(ApiCode.Success, "");
                }

                //修改当前内容为系统撤单
                if (id.ToLower().StartsWith("i"))
                {
                    //追号
                    this.CannelCatchNum(catchNum, id);
                }
                else
                {
                    //投注
                    this.CannelBettNum(id);
                }
            }
        }