EasyShop/ashx/EditOrderPrice.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>
/// EditOrderPrice 的摘要说明
/// </summary>
public class EditOrderPrice : IHttpHandler
{
public void ProcessRequest(HttpContext context)
{
//ordernum, xgprice, price, xgkdprice,kdprice
context.Response.ContentType = "text/plain";
string ordernum = context.Request.Params["ordernum"].ToString();
string tzprice = context.Request.Params["tzprice"].ToString();
string price = context.Request.Params["price"].ToString();
//string xgkdprice = context.Request.Params["xgkdprice"].ToString();
//string kdprice = context.Request.Params["kdprice"].ToString();
decimal k1;
decimal k2;
decimal k3;
decimal k4;
if(!decimal.TryParse(price,out k1))
{
price = "0";
}
if (!decimal.TryParse(tzprice, out k2))
{
tzprice = "0";
}
decimal YhPrice =decimal.Parse(tzprice);
//decimal lastKdPrice = decimal.Parse(xgkdprice) + decimal.Parse(kdprice);
TB_MC_Order tmo = new TB_MC_Order();
tmo.OrderNum = ordernum;
tmo.YhPrice = YhPrice;
//tmo.TransportPrice = lastKdPrice;
int k = tmo.UpdateOrderPrice();
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)};
int k33;
System.Net.IPAddress addr = new System.Net.IPAddress(Dns.GetHostByName(Dns.GetHostName()).AddressList[0].Address);
string userid=conn.MyCookie.getCookie("UserID");
后面还有 23 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。