Hidistro.UI.Web/Admin/Shop/ShopTempEdit.cs

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

namespace Hidistro.UI.Web.Admin.Shop
{
    using Hidistro.Core;
    using Hidistro.UI.ControlPanel.Utility;
    using System;
    using System.IO;
    using System.Text;
    using System.Web.UI.HtmlControls;
    using System.Web.UI.WebControls;
    using System.Xml;

    public class ShopTempEdit : AdminPage
    {
        public string cssSrc;
        public bool isModuleEdit;
        protected HtmlInputHidden j_pageID;
        protected Literal La_script;
        public string scriptSrc;
        public string tempName;

        public ShopTempEdit() : base("m01", "dpp03")
        {
            this.scriptSrc = "/Templates/vshop/";
            this.cssSrc = "/Templates/vshop/";
        }

        public bool GetIsModuleEdit(string tempName)
        {
            string filename = base.Server.MapPath(Globals.ApplicationPath + "/Templates/vshop/" + tempName + "/template.xml");
            XmlDocument document = new XmlDocument();
            document.Load(filename);
            return Convert.ToBoolean(document.SelectSingleNode("root/IsModuleEdit").InnerText);
        }

        public string GetTemplatescript(string tempName)
        {
            string path = base.Server.MapPath("/Templates/vshop/ti/data/default.json");
            if (!string.IsNullOrEmpty(tempName))
            {
                path = base.Server.MapPath("/Templates/vshop/" + tempName + "/script/default.json");
            }
            StreamReader reader = new StreamReader(path, Encoding.UTF8);
            try
            {
                string str2 = reader.ReadToEnd();
                reader.Close();
                return str2;
            }
            catch
            {
                return "";
            }
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!base.IsPostBack)
            {
                this.tempName = base.Request.QueryString["tempName"];
                if (string.IsNullOrEmpty(this.tempName))
后面还有 13 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。