12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Web;
- using System.Web.UI;
- using System.Web.UI.WebControls;
- namespace LYFZ.WeixinServers
- {
- public partial class LogList : System.Web.UI.Page
- {
- public string tempLogs = "日志功能未来开启";
- public string ddomaineList="暂无待调试加密锁域名";
- protected void Page_Load(object sender, EventArgs e)
- {
- if (!Global.LogsDongleDomainList.Contains(LYFZ.WXLibrary.OpenPlatformConfig.MicroLetterTestUsername))
- {
- Global.LogsDongleDomainList.Add(LYFZ.WXLibrary.OpenPlatformConfig.MicroLetterTestUsername);
- }
- if (LYFZ.WXLibrary.CommonHandleClass.IsOpenLogs) {
- tempLogs = "日志功能已开启";
- }
- if (Request.QueryString["logs"] != null && Request.QueryString["logs"].ToString() == "del")
- {
- LYFZ.WXLibrary.CommonHandleClass.DeleteWeiXinlogs();
- Response.Write("<script>document.location='LogList.aspx';</script>");
- }
- else if (Request.QueryString["logs"] != null && Request.QueryString["logs"].ToString() == "y")
- {
- LYFZ.WXLibrary.CommonHandleClass.IsOpenLogs=true;
- Response.Write("<script>document.location='LogList.aspx';</script>");
- }
- else if (Request.QueryString["logs"] != null && Request.QueryString["logs"].ToString() == "n")
- {
- LYFZ.WXLibrary.CommonHandleClass.IsOpenLogs = false;
- Response.Write("<script>document.location='LogList.aspx';</script>");
- }
- if (Request.QueryString["type"] != null && Request.QueryString["type"].ToString() == "add"&&Request.QueryString["ddomaine"]!=null)
- {
- string ddomaine=Request.QueryString["ddomaine"].ToString();
- if (!Global.LogsDongleDomainList.Contains(ddomaine))
- {
- Global.LogsDongleDomainList.Add(ddomaine);
- Response.Write("<script>document.location='LogList.aspx';</script>");
- }
- }
- else if (Request.QueryString["type"] != null && Request.QueryString["type"].ToString() == "del")
- {
- Global.LogsDongleDomainList.Clear();
- Response.Write("<script>document.location='LogList.aspx';</script>");
- }
- if (Global.LogsDongleDomainList.Count > 0)
- {
- ddomaineList = "";
- foreach (string ddomaine in Global.LogsDongleDomainList)
- {
- ddomaineList += ddomaine + "<br />";
- }
- }
- }
- }
- }
|