Web/App_Code/RightsTool.cs
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using WMPT.SQLServerDAL;
using WMPT.Model;
using WMPT.Cache;
using System.Web.UI.WebControls;
/// <summary>
/// 根据管理员权限,生成查询条件:分订单,商家,配送员
/// 注意:有城市和区域。
/// </summary>
public class RightsTool
{
public EAdminInfo admin = null;
/// <summary>
/// 获取当前登录的管理员
/// </summary>
public RightsTool()
{
admin = UserHelp.GetAdmin();
if (admin == null)
{
HttpContext.Current.Response.Redirect("~/Admin/login.aspx?from=RightsTool");
}
}
/// <summary>
/// 传入登录的管理员
/// </summary>
public RightsTool(EAdminInfo _admin)
{
admin = _admin;
}
/// <summary>
/// 商家查询条件
/// </summary>
/// <param name="oldwhere"></param>
/// <returns></returns>
public string getShopWhere(string oldwhere)
{
string sqlwhere = oldwhere;
if (sqlwhere.Length == 0)
{
sqlwhere = " 1=1 ";
}
if (admin.CityID > 0)
{
sqlwhere += " and cityid=" + admin.CityID;
}
if (admin.AdminStatus > 0)
{
sqlwhere += " and IsCallCenter=" + admin.AdminStatus;
}
后面还有 5 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
