EasyShop/ashx/EditProductTeamCancel.ashx.cs

(完整代码) 1KB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using MyModels;
using ExeSql;
namespace EasyShop.ashx
{
    /// <summary>
    /// EditProductTeamCancel 的摘要说明
    /// </summary>
    public class EditProductTeamCancel : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            //id, teamprice, kcnum
            context.Response.ContentType = "text/plain";
            string id = context.Request.Params["id"].ToString();
            string proprice = context.Request.Params["teamprice"].ToString();
            string kcnum = context.Request.Params["kcnum"].ToString();
            TB_MC_ProductTeam tmt = new TB_MC_ProductTeam();
            tmt.ID = int.Parse(id);
            tmt.NowPrice = decimal.Parse(proprice);
            tmt.kcNum = int.Parse(kcnum);
            tmt.EditBy = conn.MyCookie.getCookie("UserID");
            tmt.EditDate = DateTime.Now;
            int k = tmt.UpdateProductTeam();
            string result = "NO";
            if (k > 0)
            {
                result = "OK";
            }
            context.Response.Write(result);
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。