Ejemplo n.º 1
0
        private string UpdateRechargePrice(HttpContext context)
        {
            string           autoId                = context.Request["AutoId"];
            string           dataValue             = context.Request["DataValue"];
            string           orderNum              = context.Request["OrderNum"];
            KeyVauleDataInfo rechargePriceKeyValue = bllkeyValueData.GetKeyVauleData(autoId);

            if (rechargePriceKeyValue == null)
            {
                resp.Status = -1;
                resp.Msg    = "找不到记录";
                return(Common.JSONHelper.ObjectToJson(resp));
            }
            rechargePriceKeyValue.DataValue = dataValue;
            rechargePriceKeyValue.OrderBy   = Convert.ToInt32(orderNum);
            if (bllkeyValueData.Update(rechargePriceKeyValue))
            {
                resp.Status = 1;
                resp.Msg    = "修改成功";
            }
            else
            {
                resp.Status = -1;
                resp.Msg    = "修改失败";
            }
            return(Common.JSONHelper.ObjectToJson(resp));
        }