EasyShop/ashx/EditOrderInfo.ashx.cs
(开头部分) 3KB这里只显示每个文件的开头 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>
/// EditOrderInfo 的摘要说明
/// </summary>
public class EditOrderInfo : IHttpHandler
{
public void ProcessRequest(HttpContext context)
{
//id: id, goodscode:goodscode, proname:proname, gmprice:gmprice, yhprice:yhprice,pronum:pronum, cztext: cztext
context.Response.ContentType = "text/plain";
string id = context.Request.Params["id"].ToString();
string goodscode = context.Request.Params["goodscode"].ToString();
string gmprice = context.Request.Params["gmprice"].ToString();
string yhprice = context.Request.Params["yhprice"].ToString();
string pronum = context.Request.Params["pronum"].ToString();
if (pronum == "")
{
pronum = "1";
}
int pronumbe = int.Parse(pronum);
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,ProNum=@ProNum");
strSql.Append(" where ID=@ID and GoodsNumID=@GoodsNumID;insert into TB_MC_RiZhi(UserID,ClassID,Context,IPAddress,addtime) values (@UserID,@ClassID,@Context,@IPAddress,@addtime)");
string mujson = "";
SqlParameter[] parm = {
new SqlParameter("@YhPrice",yhprice),
new SqlParameter("@ProNum",pronum),
new SqlParameter("@ID",id),
new SqlParameter("@GoodsNumID",goodscode),
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);
后面还有 16 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。