Medical/Html/ajax/setfav.ashx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Web.SessionState;
using System.Web;
using System.Collections;
namespace WebApplication.Html.ajax
{
/// <summary>
/// setfav 的摘要说明
/// </summary>
public class setfav : IHttpHandler,IRequiresSessionState
{
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/plain";
//context.Response.Write("Hello World");
if (context.Request["infoid"] != null && context.Request["title"] != null)
{
if (context.Session["LoginInfoID"] != null)
{
BLL.Models.GZXX_Model bll = new BLL.Models.GZXX_Model();
Hashtable ht = new Hashtable();
ht.Add("Inputer", context.Session["LoginInfoID"]);
ht.Add("DepartID", 1);
ht.Add("UserInfoID", context.Session["LoginInfoID"]);
ht.Add("UserName", context.Session["LoginTitle"]);
ht.Add("Title", context.Request["title"]);
ht.Add("CPInfoID", context.Request["infoid"]);
ht.Add("ChannelID",1000063);
ht.Add("ClassID",136);
ht.Add("CreateDate", DateTime.Parse(DBUtility.DbHelperSQL.GetSingle("select getdate()").ToString()).ToString("yyyy-MM-dd HH:mm:ss"));
int infoid = bll.AddContent("GZXX_U_Favorite", ht);
if (infoid > 0)
{
context.Response.Write("OK");
}
else
{
context.Response.Write("ParamError");
}
}
else
{
context.Response.Write("NoLogin");
}
}
else
{
context.Response.Write("ParamError");
}
}
public bool IsReusable
{
后面还有 7 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
