Web/Services/manage/Right.ashx.cs
(开头部分) 17KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Entity;
using BLL;
using Newtonsoft.Json;
using Common;
using System.IO;
using BLL.manage;
using System.Data;
namespace HotelShop.Services.manage
{
/// <summary>
/// Right 的摘要说明
/// </summary>
public class Right : IHttpHandler
{
public void ProcessRequest(HttpContext context)
{
string str = "";
string type = context.Server.UrlDecode(DNTRequest.GetString("type"));
switch (type)
{
case "GetResourceSetList":
{
JsonModel jm = new JsonModel();
if (CommonHelper.UserID() == -1)
jm.is_login = 0;
else
{
RightSetList list = new RightSetList();
jm.listhtml = list.ListHtml(); jm.is_login = 1; jm.status = 200;
jm.listpage = list.Pager();
}
str = JsonConvert.SerializeObject(jm, Formatting.Indented);
}
break;
case "GetResourceList":
{
JsonModel jm = new JsonModel();
if (CommonHelper.UserID() == -1)
jm.is_login = 0;
else
{
ResourcesList list = new ResourcesList();
jm.listhtml = list.ListHtml(); jm.is_login = 1; jm.status = 200;
jm.listpage = list.Pager();
}
str = JsonConvert.SerializeObject(jm, Formatting.Indented);
}
break;
case "AddRole":
{
if (CommonHelper.UserID() == -1)
str = "-10";
else
{
try
{
后面还有 348 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
