TrainSignManage/services/sysLog.ashx.cs
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Script.Serialization;
using Common;
using TindWit.Common;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using TindWit.DBUtility;
namespace witAdmin.services
{
/// <summary>
/// userLog 的摘要说明
/// </summary>
public class sysLog : IHttpHandler
{
public void ProcessRequest(HttpContext context)
{
string callback = Units.GetStringQS("callback");
string result = "";
string startTime = Units.GetStringQS("startTime");
string endTime = Units.GetStringQS("endTime");
string strWhere = " where 1=1 ";
if (!string.IsNullOrEmpty(startTime))
{
strWhere += " AND operationTime>='" + startTime + "'";
}
if (!string.IsNullOrEmpty(endTime))
{
strWhere += "AND operationTime<='" + Convert.ToDateTime(endTime).AddDays(1) + "'";
}
string type = Units.GetStringQS("type");
switch (type)
{
case "SysLogListCommon"://后台日志列表管理
if (AdminPage.AdminUserID() > 0)
{
int pageIndex = Units.GetIntQS("pageIndex");
result = GetSysLogByPage(pageIndex, PagerNumber.pageSize, strWhere);
}
else
{
result = new JavaScriptSerializer().Serialize(new { LoginStatus = 0 });
}
break;
case "ExportOutCommon"://导出
ExportOutCommon(strWhere);
break;
}
context.Response.ContentType = "text/plain";
context.Response.Write(callback + "(" + result + ")");
context.Response.End();
}
后面还有 88 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。