EasyShop/ashx/EditOrderState.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;
using MyModels;

namespace EasyShop.ashx
{
    /// <summary>
    /// EditOrderState 的摘要说明
    /// </summary>
    public class EditOrderState : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            string ordernum = context.Request.Params["ordernum"].ToString();
            string state = context.Request.Params["zt"].ToString();
            TB_MC_Order tmo = new TB_MC_Order();
            tmo.OrderNum = ordernum;
            tmo.State = int.Parse(state);
            int k = tmo.UpdateOrderState();
            string result = "NO";
            if (k > 0)
            {
                TB_MC_RiZhi tmr = new TB_MC_RiZhi();
                //new SqlParameter("@UserID",this.UserID),
                    //new SqlParameter("@ClassID", this.ClassID),
                    //new SqlParameter("@Context",this.Context),
                    //new SqlParameter("@IPAddress", this.IPAddress),
                    //new SqlParameter("@addtime", this.addtime)};
                tmr.ClassID = 31;//dingdan状态修改
                tmr.Context = context.Request.Params["bz"].ToString();
                string GUserId=conn.MyCookie.getCookie("Id").ToString();
                if(!string.IsNullOrEmpty(GUserId))
                {
                    tmr.UserID = int.Parse(GUserId);
                }
               else
                {
                    tmr.UserID = 0;
                }
                System.Net.IPAddress addr = new System.Net.IPAddress(Dns.GetHostByName(Dns.GetHostName()).AddressList[0].Address);
                tmr.IPAddress = addr.ToString();
                tmr.addtime = DateTime.Now;
                int rz = tmr.Update();
                result = "OK";
            }
            else
            {
                result = "NO";
            }
后面还有 12 行代码,购买后查看完整代码

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

AI 解读 AI

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

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