Hidistro.UI.Web/Admin/Shop/Hi_Ajax_SaveTemplate.cs
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
namespace Hidistro.UI.Web.Admin.Shop
{
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Web;
public class Hi_Ajax_SaveTemplate : IHttpHandler
{
public string Base64Code(string message)
{
return Convert.ToBase64String(Encoding.UTF8.GetBytes(message));
}
public string Base64Decode(string message)
{
byte[] bytes = Convert.FromBase64String(message);
return Encoding.UTF8.GetString(bytes);
}
public string GetGoodGroupTag(HttpContext context, string path, JToken data)
{
try
{
return string.Concat(new object[] {
"<Hi:GoodsListModule runat=\"server\" Type=\"goodGroup\" Layout=\"", data["content"]["layout"], "\" ShowName=\"", data["content"]["showName"], "\" ShowIco=\"", data["content"]["showIco"], "\" ShowPrice=\"", data["content"]["showPrice"], "\" DataUrl=\"", context.Request.Form["getGoodGroupUrl"], "\" ID=\"group_", Guid.NewGuid().ToString("N"), "\" TemplateFile=\"", path, "\" GoodListSize=\"", data["content"]["goodsize"],
"\" FirstPriority=\"", data["content"]["firstPriority"], "\" SecondPriority=\"", data["content"]["secondPriority"], "\" />"
});
}
catch
{
return "";
}
}
public string GetGoodTag(HttpContext context, JToken data)
{
try
{
string str = "";
foreach (JToken token in (IEnumerable<JToken>) data["content"]["goodslist"])
{
str = str + token["item_id"] + ",";
}
str = str.TrimEnd(new char[] { ',' });
string str2 = "";
if (!string.IsNullOrEmpty(str))
{
string str3 = "/admin/shop/Modules/GoodGroup" + data["content"]["layout"] + ".cshtml";
str2 = string.Concat(new object[] {
"<Hi:GoodsMobule runat=\"server\" Layout=\"", data["content"]["layout"], "\" ShowName=\"", data["content"]["showName"], "\" IDs=\"", str, "\" ShowIco=\"", data["content"]["showIco"], "\" ShowPrice=\"", data["content"]["showPrice"], "\" DataUrl=\"", context.Request.Form["getGoodUrl"], "\" ID=\"goods_", Guid.NewGuid().ToString("N"), "\" TemplateFile=\"", str3,
"\" />"
});
}
else
{
str2 = str2 + this.Base64Decode(data["dom_conitem"].ToString());
后面还有 97 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
