EasyShop/ashx/EditPriceInfo.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>
/// EditPriceInfo 的摘要说明
/// </summary>
public class EditPriceInfo : IHttpHandler
{
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/plain";
string id = context.Request.Params["id"].ToString();
string ordernum = context.Request.Params["ordernum"].ToString();
string yhid = context.Request.Params["yhid"].ToString();
string kdid = context.Request.Params["kdid"].ToString();
string cztext = context.Request.Params["cztext"].ToString();
System.Net.IPAddress addr = new System.Net.IPAddress(Dns.GetHostByName(Dns.GetHostName()).AddressList[0].Address);
string myIP = addr.ToString();
string myUserID = MyCookie.getCookie("UserID").ToString();
int UserID = 0;
if (!string.IsNullOrEmpty(myUserID))
{
UserID = int.Parse(myUserID);
}
StringBuilder strSql = new StringBuilder();
strSql.Append("update TB_MC_Order set YhPrice=@YhPrice,TransportPrice=@TransportPrice");
strSql.Append(" where Id=@Id;insert into TB_MC_RiZhi(UserID,ClassID,Context,IPAddress,addtime) values (@UserID,@ClassID,@Context,@IPAddress,@addtime)");
string mujson = "";
SqlParameter[] parm = {
new SqlParameter("@YhPrice",yhid),
new SqlParameter("@TransportPrice",kdid),
new SqlParameter("@Id",int.Parse(id)),
new SqlParameter("@UserID",UserID),
new SqlParameter("@ClassID",23),
new SqlParameter("@Context",cztext),
new SqlParameter("@IPAddress",myIP),
new SqlParameter("@addtime",DateTime.Now)
};
int k = ExeSql.SqlHelper.ExecuteNonQuery(ExeSql.SqlHelper.ConnectionString, strSql.ToString(), parm);
if (k > 0)
{
mujson = "update success";
}
context.Response.Write(mujson);
}
public bool IsReusable
后面还有 8 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。