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