Hidistro.UI.Web/Admin/WeiXin/ConcernUrl.cs
(完整代码) 2KBnamespace Hidistro.UI.Web.Admin.WeiXin
{
using Hidistro.ControlPanel.Store;
using Hidistro.Core;
using Hidistro.Core.Entities;
using Hidistro.Entities.Store;
using Hidistro.UI.ControlPanel.Utility;
using System;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
[PrivilegeCheck(Privilege.ProductCategory)]
public class ConcernUrl : AdminPage
{
private string action;
protected Button btnSave;
protected bool enableGuidePageSet;
protected HtmlForm form1;
private SiteSettings siteSettings;
protected TextBox txtGuidePageSet;
protected ConcernUrl() : base("m06", "wxp02")
{
this.siteSettings = SettingsManager.GetMasterSettings(false);
this.action = Globals.RequestFormStr("action");
}
protected void btnSave_Click(object sender, EventArgs e)
{
this.siteSettings.GuidePageSet = this.txtGuidePageSet.Text.Trim();
SettingsManager.Save(this.siteSettings);
this.ShowMsg("修改成功", true);
}
protected void Page_Load(object sender, EventArgs e)
{
if (!base.IsPostBack)
{
if (this.action == "setenable")
{
base.Response.Clear();
base.Response.ContentType = "application/json";
string s = "{\"type\":\"1\",\"tips\":\"操作成功!\"}";
this.siteSettings.EnableGuidePageSet = Globals.RequestFormNum("enable") == 1;
SettingsManager.Save(this.siteSettings);
base.Response.Write(s);
base.Response.End();
}
else if (this.siteSettings.GuidePageSet.Length > 10)
{
this.txtGuidePageSet.Text = this.siteSettings.GuidePageSet;
}
}
this.enableGuidePageSet = this.siteSettings.EnableGuidePageSet;
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
