EasyShop/ashx/AddKeFu.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 OpSql;
using System.Data;
using System.Data.SqlClient;
namespace Mall.ashx
{
/// <summary>
/// AddKeFu 的摘要说明
/// </summary>
public class AddKeFu : IHttpHandler
{
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/plain";
string ID, kfName, kfQQ, kfStype, kfWW, ClassName, Sort, addtime;
//sort, classname, kfqq, kfname
ClassName = context.Request.Params["classname"].ToString();
kfName = context.Request.Params["kfname"].ToString();
kfQQ = context.Request.Params["kfqq"].ToString();
Sort = context.Request.Params["sort"].ToString();
DbConn conn = new DbConn();
conn.open();
StringBuilder strSql = new StringBuilder();
strSql.Append("insert into TB_MC_KfOnline( kfName, kfQQ,ClassName, Sort, addtime) values (@kfName, @kfQQ,@ClassName, @Sort, @addtime)");
SqlParameter[] parm = {
new SqlParameter("@kfName",kfName),
new SqlParameter("@kfQQ",kfQQ),
new SqlParameter("@ClassName",ClassName),
new SqlParameter("@Sort",Sort),
new SqlParameter("@addtime",DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"))
};
int k = ExeSql.SqlHelper.ExecuteNonQuery(ExeSql.SqlHelper.ConnectionString, strSql.ToString(), parm);
string mujson = "";
if (k > 0)
{
mujson = "add successs";
}
//string mujson = FormatToJson.ToJson(ds, "result");
conn.close();
context.Response.Write(mujson);
}
public bool IsReusable
{
get
{
return false;
}
}
后面还有 2 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。