/// <summary> /// 是否已经开奖 /// </summary> /// <returns></returns> public ActionResult ExistsLot() { try { int lotterytype = WebHelper.GetQueryInt("lotterytype"); string expect = WebHelper.GetQueryString("expect"); bool result = Lottery.ExistsLottery(" where a.type=" + lotterytype.ToString() + " and a.expect='" + expect + "'"); if (result) return Content("1"); else return Content("2"); } catch (Exception) { return Content("3"); } }