EasyShop/ashx/AddOutStock.ashx.cs

(完整代码) 1KB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MyModels;
using MyModels.Db;
using ExeSql;
using BLL;
using Easy.COMMON;
using COMM;
namespace EasyShop.ashx
{
    /// <summary>
    /// AddOutStock 的摘要说明
    /// </summary>
    public class AddOutStock : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            string proid = context.Request.QueryString["proid"].ToString();
            string email = context.Request.QueryString["email"].ToString();
            TB_MC_ProductOutStock_Ext tms = new TB_MC_ProductOutStock_Ext();
            string ip = conn.myClientClass.getIPAddress();
            if (string.IsNullOrEmpty(ip))
            {
                ip = "";
            }
            if (string.IsNullOrEmpty(proid))
            {
                proid = "0";
            }
            if (string.IsNullOrEmpty(email))
            {
                email = "";
            }
            int k = tms.AddProductOutStock(int.Parse(proid), email,ip, "");
            string result = "NO";
            if (k > 0)
            {
                result = "OK";
            }
            context.Response.Write(result);
        }

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

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

AI 解读 AI

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

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