コード例 #1
0
        private void SetOver(HttpContext context)
        {
            int?intParam = base.GetIntParam(context, "preSaleId", false);

            if (!intParam.HasValue)
            {
                throw new HidistroAshxException("错误的编号");
            }
            if (ProductPreSaleHelper.SetPreSaleGameOver(intParam.Value))
            {
                base.ReturnSuccessResult(context, "操作成功", 0, true);
                return;
            }
            throw new HidistroAshxException("操作失败");
        }