Пример #1
0
        /// <summary>
        /// 删除投注
        /// </summary>
        /// <returns></returns>
        public ActionResult DelBett()
        {
            try
            {
                if (WorkContext.Uid == -1)
                {
                    return APIResult("error", "请先登录,登录后才能撤销投注");
                }

                NameValueCollection parmas = WorkContext.postparms;

                bool msg = Lottery.DeleteBett(WorkContext.Uid.ToString(), int.Parse(parmas["lotterytype"]), parmas["expect"], parmas["bttype"], parmas["btroom"]);
                if (!msg)
                {
                    return APIResult("error", "撤销失败");
                }
                else
                {
                    return APIResult("success", "撤销成功");
                }

            }
            catch (Exception ex)
            {
                return APIResult("error", "撤销失败");
            }
        }