WebApplication/Admin/Ajax/jd.ashx.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using DBUtility;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web.SessionState;
using System.Web;
namespace WebApplication.Admin.Ajax
{
/// <summary>
/// jd 的摘要说明
/// </summary>
public class jd : IHttpHandler,IRequiresSessionState
{
BLL.Models.GZXX_Model bll = new BLL.Models.GZXX_Model();
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/plain";
//context.Response.Write("Hello World");
if (context.Request["type"] != null && context.Request["infoid"] != null && context.Request["mobile"] != null && context.Request["people"] != null)
{
string nowdatetime = DateTime.Parse(DBUtility.DbHelperSQL.GetSingle("select getdate()").ToString()).ToString("yyyy-MM-dd HH:mm:ss");
DataTable dt = DbHelperSQL.Query("select * from GZXX_U_Order where Flag = '等待接单' and convert(datetime,FwDate) > getdate() and infoid = " + context.Request["infoid"]).Tables[0];
List<DBUtility.CommandInfo> list = new List<DBUtility.CommandInfo>();
if (context.Request["type"] == "close")
{
if (dt.Rows.Count > 0)
{
CommandInfo info1 = new CommandInfo();
info1.CommandText = "update GZXX_U_Order set Flag = '已关闭' where InfoID =" + dt.Rows[0]["InfoID"].ToString();
info1.Parameters = null;
info1.EffentNextType = EffentNextType.ExcuteEffectRows;
list.Add(info1);
CommandInfo info2 = new CommandInfo();
info2.CommandText = "update GZXX_U_UserTable set HaveMoney = HaveMoney + " + dt.Rows[0]["Money"].ToString() + " where InfoID =" + dt.Rows[0]["UserInfoID"].ToString();
info2.Parameters = null;
info2.EffentNextType = EffentNextType.ExcuteEffectRows;
list.Add(info2);
Hashtable ht = new Hashtable();
ht["ChannelID"] = 1000070;
ht["ClassID"] = 124;
ht["Title"] = dt.Rows[0]["CardID"].ToString();
ht["DepartID"] = context.Session["DepartID"].ToString();
ht["Money"] = dt.Rows[0]["Money"].ToString();
ht["PayPeople"] = context.Session["LoginName"].ToString();
ht["Inputer"] = context.Session["LoginName"].ToString();
ht["CreateDate"] = nowdatetime;
ht["UserInfoID"] = dt.Rows[0]["UserInfoID"].ToString();
ht["Msg"] = "订单编号:" + dt.Rows[0]["Title"].ToString() + "超时未接单进行退款" + dt.Rows[0]["Money"].ToString() + "元";
if (bll.AddContent("GZXX_U_Money", ht, list) > 0)
{
context.Response.Write("Success");
}
else
{
context.Response.Write("服务订单操作失败!");
}
}
后面还有 45 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
