Views/UserCenter/UserState.ashx
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<%@ WebHandler Language="C#" Class="UserState" %>
using System;
using System.Web;
using System.Data;
using System.Data.SqlClient;
using MicroDBHelper;
using MicroPublicHelper;
using MicroUserHelper;
using MicroAuthHelper;
public class UserState : IHttpHandler, System.Web.SessionState.IRequiresSessionState
{
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/plain";
MicroAuth.CheckLogin();
string flag = MicroPublic.GetMsg("StateFailed"),
Type = context.Server.UrlDecode(context.Request.Form["type"]),
StateCode = context.Server.UrlDecode(context.Request.Form["statecode"]),
StateName = context.Server.UrlDecode(context.Request.Form["statename"]),
DurationTime = context.Server.UrlDecode(context.Request.Form["durationtime"]),
CustomDurationTime = context.Server.UrlDecode(context.Request.Form["customdurationtime"]);
////测试数据
//Type = "fixed";
//StateCode = "100";
//StateName = "有空";
if (!string.IsNullOrEmpty(Type) && !string.IsNullOrEmpty(StateCode) && !string.IsNullOrEmpty(StateName))
flag = SetUserState(Type, StateCode, StateName, DurationTime, CustomDurationTime);
context.Response.Write(flag);
}
private string SetUserState(string Type, string StateCode, string StateName, string DurationTime, string CustomDurationTime)
{
string flag = MicroPublic.GetMsg("StateFailed"),
UID = MicroUserInfo.GetUserInfo("UID");
Type = Type.ToLower();
//即固定的(有空、会议等),非自定义的,当前时间加上90天
if (Type == "fixed")
CustomDurationTime = DateTime.Now.AddDays(90).toDateFormat("yyyy-MM-dd HH:mm:ss");
else
{
if (DurationTime == "30")
CustomDurationTime = DateTime.Now.AddMinutes(30).toDateFormat("yyyy-MM-dd HH:mm:ss");
else if (DurationTime == "1")
CustomDurationTime = DateTime.Now.AddHours(1).toDateFormat("yyyy-MM-dd HH:mm:ss");
else if (DurationTime == "2")
CustomDurationTime = DateTime.Now.AddHours(2).toDateFormat("yyyy-MM-dd HH:mm:ss");
else if (DurationTime == "3")
CustomDurationTime = DateTime.Now.AddHours(3).toDateFormat("yyyy-MM-dd HH:mm:ss");
else if (DurationTime == "4")
CustomDurationTime = DateTime.Now.AddHours(4).toDateFormat("yyyy-MM-dd HH:mm:ss");
后面还有 59 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
