Hidistro.UI.Web/Admin/Member/api/Hi_Ajax_GetDistributors.cs
(完整代码) 1KBnamespace Hidistro.UI.Web.Admin.Member.api
{
using Hidistro.Entities.Members;
using Hidistro.SaleSystem.Vshop;
using System;
using System.Data;
using System.Web;
public class Hi_Ajax_GetDistributors : IHttpHandler
{
public string GetJson(HttpContext context)
{
DistributorsQuery query = new DistributorsQuery {
StoreName = (context.Request.QueryString["userName"] != null) ? context.Request.QueryString["userName"] : ""
};
DataTable table = DistributorsBrower.SelectDistributors(query);
string str = "[";
if (table.Rows.Count > 0)
{
for (int i = 0; i < table.Rows.Count; i++)
{
object obj2 = str + "{";
object obj3 = string.Concat(new object[] { obj2, "\"StoreName\":\"", table.Rows[i]["StoreName"], "\"," });
str = string.Concat(new object[] { obj3, "\"UserId\":\"", table.Rows[i]["UserId"], "\"" }) + "},";
}
str = str.TrimEnd(new char[] { ',' });
}
return (str + "]");
}
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/plain";
context.Response.Write(this.GetJson(context));
}
public bool IsReusable
{
get
{
return false;
}
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
