EasyShop/ashx/EditApplyState.ashx.cs

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using conn;
using System.Text;
using System.Data;
using FormatJosn;
using ExeSql;
using System.Data.SqlClient;
using System.Net;
namespace EasyShop.ashx
{
    /// <summary>
    /// EditApplyState 的摘要说明
    /// </summary>
    public class EditApplyState : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            string id = context.Request.Params["id"].ToString();
            string state = context.Request.Params["stateid"].ToString();
            string cztext = context.Request.Params["cztext"].ToString();
            string ordernumber = context.Request.Params["ordernumber"].ToString();
            MyModels.Apply_Add aa = new MyModels.Apply_Add();
            aa.ID = int.Parse(id);
            aa.IsAudit = int.Parse(state);
            int k1 = aa.UpdateApplyState();
            //添加日志文件
            MyModels.TB_MC_RiZhi tmr = new MyModels.TB_MC_RiZhi();
            string myUserID = MyCookie.getCookie("UserID").ToString();
            int UserID = 0;
            if (!string.IsNullOrEmpty(myUserID))
            {
                UserID = int.Parse(myUserID);
            }
            tmr.UserID = UserID;
            tmr.ClassID = 23;
            tmr.Context = "订单号:"+ordernumber+","+cztext;
            System.Net.IPAddress addr = new System.Net.IPAddress(Dns.GetHostByName(Dns.GetHostName()).AddressList[0].Address);
            tmr.IPAddress = addr.ToString();
            tmr.addtime = DateTime.Now;
            int k2 = tmr.Add();
            string mujson = "";
            if (k1 > 0 && k2 > 0)
            {
                mujson = "更新成功";
            }
            else if(k1>0&k2<0)
            {
                mujson = "更新成功,但更新日志失败";
            }
            context.Response.Write(mujson);
        }

        public bool IsReusable
        {
            get
后面还有 6 行代码,购买后查看完整代码

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

AI 解读 AI

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

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