Views/UserCenter/UsersPublicInfoChange.ashx

(开头部分) 12KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<%@ WebHandler Language="C#" Class="UsersPublicInfoChange" %>

using System;
using System.Web;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using MicroDBHelper;
using MicroDTHelper;
using MicroPublicHelper;
using MicroUserHelper;
using Newtonsoft.Json.Linq;
using System.Collections.Generic;
using MicroAuthHelper;

public class UsersPublicInfoChange : IHttpHandler, System.Web.SessionState.IRequiresSessionState
{

    public void ProcessRequest(HttpContext context)
    {
        context.Response.ContentType = "text/plain";
        MicroAuth.CheckLogin();

        string flag = MicroPublic.GetMsg("DenyUrlParaError"),
             Action = context.Server.UrlDecode(context.Request.Form["action"]),
             Type = context.Server.UrlDecode(context.Request.Form["type"]),
             MID = context.Server.UrlDecode(context.Request.Form["mid"]),
             UIDS = context.Server.UrlDecode(context.Request.Form["uids"]),
             Fields = context.Server.UrlDecode(context.Request.Form["fields"]),
             Date = context.Server.UrlDecode(context.Request.Form["date"]);


        Action = string.IsNullOrEmpty(Action) == true ? "" : Action.ToLower();

        try
        {
            if (!string.IsNullOrEmpty(Type) && !string.IsNullOrEmpty(Fields))
            {
                Type = Type.ToLower();

                if (Type == "setaujtitle")
                    flag = SetAllUserDefaultJobTitle(Fields);

                if (Type == "setaurole")
                    flag = SetAllUserDefaultRole(Fields);

                if (Type == "udepts")
                    flag = ModifyUserDepts(UIDS, Fields);

                if (Type == "ujtitle")
                    flag = ModifyUserJobTitle(UIDS, Fields);

                if (Type == "uroles")
                    flag = ModifyUserRoles(UIDS, Fields);

                if (Type == "uworkhoursystem")
                    flag = ModifyUserWorkHourSystem(UIDS, Fields, Date);
            }
        }
        catch (Exception ex)
后面还有 283 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。