KingNET.PageLib/IBOServiceHandler.cs
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DMSFrame.WebService;
using System.Web.SessionState;
using System.Web;
using DMSFrame;
namespace KingNET.PageLib
{
public class IBOServiceHandler : WebServiceHandler, IHttpHandler, IRequiresSessionState
{
public IBOServiceHandler()
: base("KingNET.Business", "KingNET.Business.WebServices.{0}")
{
}
private AdminTicket _UserTicket;
/// <summary>
/// 用户票据
/// </summary>
/// <value>The ticket.</value>
protected AdminTicket Ticket
{
get
{
if (_UserTicket == null)
{
_UserTicket = new AdminTicket();
}
return _UserTicket;
}
}
public override void Execute()
{
try
{
string fmt = HttpContext.Current.Request.Params["fmt"];
string act = HttpContext.Current.Request.Params["act"];
string mod = HttpContext.Current.Request.Params["mod"];
string localurl = HttpContext.Current.Request.Params["localurl"];
string url = HttpContext.Current.Request.RawUrl;
if (string.IsNullOrEmpty(mod) || string.IsNullOrEmpty(act) || string.IsNullOrEmpty(localurl))
{
DMSFrame.Loggers.LoggerManager.FileLogger.LogWithTime(string.Format("前台ajax错误请求信息mod:{0},act:{1},fmt:{2},localurl:{3},url:{4}", mod, act, fmt, localurl, url));
JsonResult returnValue = new JsonResult() { errno = 503, errmsg = string.Format("前台ajax错误请求信息mod:{0},act:{1},fmt:{2},localurl:{3},url:{4}", mod, act, fmt, localurl, url) };
WriterFormater(returnValue);
return;
}
try
{
MultiServiceHandler multi = new MultiServiceHandler(this);
WebServiceHandler handler1 = null;
handler1 = new WebServiceHandler("KingNET.Business", "KingNET.Business.WebServices.{0}");
handler1.Configuration.DefaultActionName = "ServiceDefaultHandler";
handler1.Configuration.DefaultModuleTypeName = "KingNET.Http";
后面还有 93 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。