Views/Home/HomePage.ashx
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<%@ WebHandler Language="C#" Class="HomePage" %>
using System;
using System.Web;
using MicroBIHelper;
using Newtonsoft.Json.Linq;
public class HomePage : IHttpHandler, System.Web.SessionState.IRequiresSessionState
{
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/plain";
string flag = string.Empty,
DataType = context.Server.UrlDecode(context.Request.Form["DataType"]),
QueryType = context.Server.UrlDecode(context.Request.Form["QueryType"]),
CustomDate = context.Server.UrlDecode(context.Request.Form["CustomDate"]);
CustomDate = string.IsNullOrEmpty(CustomDate) ? DateTime.Now.toDateFormat("yyyy-MM-dd") : CustomDate;
////测试数据
//DataType = "SysInfo";
//QueryType = "All";
//CustomDate = "2021-09-15";
if (!string.IsNullOrEmpty(DataType) && !string.IsNullOrEmpty(QueryType) && !string.IsNullOrEmpty(CustomDate))
{
DataType = DataType.ToLower();
if (DataType == "qty")
flag = MicroBI.GetApplyByQty(QueryType, CustomDate);
else if (DataType == "chart")
flag = MicroBI.GetApplyByChart(QueryType, CustomDate);
else if (DataType == "piechart")
flag = MicroBI.GetApplyByPieChart(QueryType, CustomDate);
else if (DataType == "pageview")
flag = MicroBI.GetPageView(QueryType, CustomDate);
else if (DataType == "browser")
flag = MicroBI.GetBrowser();
else if (DataType == "sysinfo")
flag = MicroBI.GetSysInfo();
}
context.Response.Write(flag);
}
public bool IsReusable
{
get
{
return false;
}
}
后面还有 2 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
