Sry.Solution.UI/SVC/dealHandler.ashx.cs

(完整代码) 1KB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Sry.Solution.Data;
using Sry.Solution.Components;
using Sry.Entity;
using System.Web.SessionState;

namespace Sry.Solution.UI.SVC
{
    /// <summary>
    /// 用作一般处理
    /// </summary>
    public class dealHandler : IHttpHandler,IRequiresSessionState
    {
        public void ProcessRequest(HttpContext context)
        {
            context.Request.ContentType = "application/x-www-form-urlencoded; charset=UTF-8";
            String result = String.Empty;
            if (!String.IsNullOrEmpty(context.Request.Form["vtype"]))
            {
                switch (context.Request.Form["vtype"].ToString())
                { 
                    case "one":
                        try
                        {
                            var rsp = new UsersRolesPurviewsData().Select(new List<string> { CurrentUser.LoginName }, 0);
                            
                            if (rsp != null && rsp.Tables[0].Rows.Count > 0)
                            {
                                string rpr_PurviewID = rsp.Tables[0].Rows[0]["rpr_PurviewID"].ToString();
                                List<string> list = new UsersRolesPurviewsData().getStr(rpr_PurviewID, 0);
                                string[] pur = list[0].Split('?');
                                result = pur[0].Split(',')[1];
                            }
                        }
                        catch { }
                        break;
                    case "checkdep":
                        result = "1";
                        break;
                }
            }

            context.Response.Write(result);
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}

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

AI 解读 AI

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

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