Hidistro.Core/Entities/SiteSettings.cs
(开头部分) 38KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
namespace Hidistro.Core.Entities
{
using System;
using System.Globalization;
using System.Runtime.CompilerServices;
using System.Xml;
public class SiteSettings
{
public SiteSettings(string siteUrl)
{
this.SiteUrl = siteUrl;
this.Theme = "default";
this.VTheme = "default";
this.Disabled = false;
this.SiteName = "多用户三级分销";
this.LogoUrl = "/utility/pics/logo.jpg";
this.ShopTel = "";
this.DefaultProductImage = "/utility/pics/none.gif";
this.DefaultProductThumbnail1 = "/utility/pics/none.gif";
this.DefaultProductThumbnail2 = "/utility/pics/none.gif";
this.DefaultProductThumbnail3 = "/utility/pics/none.gif";
this.DefaultProductThumbnail4 = "/utility/pics/none.gif";
this.DefaultProductThumbnail5 = "/utility/pics/none.gif";
this.DefaultProductThumbnail6 = "/utility/pics/none.gif";
this.DefaultProductThumbnail7 = "/utility/pics/none.gif";
this.DefaultProductThumbnail8 = "/utility/pics/none.gif";
this.WeiXinCodeImageUrl = "/Storage/master/WeiXinCodeImageUrl.jpg";
this.VipCardBG = "/Storage/master/Vipcard/vipbg.png";
this.VipCardQR = "/Storage/master/Vipcard/vipqr.jpg";
this.VipCardPrefix = "100000";
this.VipRequireName = true;
this.VipRequireMobile = true;
this.EnablePodRequest = true;
this.CustomReply = true;
this.SubscribeReply = true;
this.ByRemind = true;
this.DecimalLength = 2;
this.PointsRate = 1M;
this.ShowCopyRight = "";
this.OrderShowDays = 7;
this.CloseOrderDays = 3;
this.FinishOrderDays = 7;
this.MaxReturnedDays = 15;
this.OpenManyService = false;
this.BatchAliPay = false;
this.BatchWeixinPay = false;
this.BatchWeixinPayCheckRealName = 2;
this.DrawPayType = "";
}
public static SiteSettings FromXml(XmlDocument doc)
{
XmlNode node = doc.SelectSingleNode("Settings");
SiteSettings settings = new SiteSettings(node.SelectSingleNode("SiteUrl").InnerText) {
Theme = node.SelectSingleNode("Theme").InnerText,
VTheme = node.SelectSingleNode("VTheme").InnerText,
ServiceMeiQia = node.SelectSingleNode("ServiceMeiQia").InnerText,
DecimalLength = int.Parse(node.SelectSingleNode("DecimalLength").InnerText),
DefaultProductImage = node.SelectSingleNode("DefaultProductImage").InnerText,
后面还有 641 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
