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("");
}
else if (Request.QueryString["logs"] != null && Request.QueryString["logs"].ToString() == "y")
{
LYFZ.WXLibrary.CommonHandleClass.IsOpenLogs=true;
Response.Write("");
}
else if (Request.QueryString["logs"] != null && Request.QueryString["logs"].ToString() == "n")
{
LYFZ.WXLibrary.CommonHandleClass.IsOpenLogs = false;
Response.Write("");
}
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("");
}
}
else if (Request.QueryString["type"] != null && Request.QueryString["type"].ToString() == "del")
{
Global.LogsDongleDomainList.Clear();
Response.Write("");
}
if (Global.LogsDongleDomainList.Count > 0)
{
ddomaineList = "";
foreach (string ddomaine in Global.LogsDongleDomainList)
{
ddomaineList += ddomaine + "
";
}
}
}
}
}