Medical/Admin/Ajax/static_html.ashx.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
namespace WebApplication.Admin.Ajax
{
/// <summary>
/// static_html 的摘要说明
/// </summary>
public class static_html : IHttpHandler
{
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/plain";
//context.Response.Write("Hello World");
BLL.Models.GZXX_Class cbll = new BLL.Models.GZXX_Class();
BLL.Models.GZXX_Model bll = new BLL.Models.GZXX_Model();
DataTable dt = cbll.GetDataTable(" where GZXX_Class.Verify = 1 ", null);
int classnum = 0;
int htmlnum = 0;
Model.Models.GZXX_Config cm = (Model.Models.GZXX_Config)Tools.SysCache.ReturnSysModelCache("configmodel");
for (int i = 0; i < dt.Rows.Count; i++)
{
if (dt.Rows[i]["verify"].ToString() == "1" && dt.Rows[i]["contenttemplate"].ToString() != "")
{
string Url = "/Html/Class.aspx?classid=" + dt.Rows[i]["classid"].ToString() + "&channelid=" + dt.Rows[i]["channelid"].ToString();
Url = cm.SiteUrl + Url;
Tools.StaticHtml.getUrltoHtml(Url, context.Server.MapPath("/Html/c" + dt.Rows[i]["classid"].ToString() + ".html"));
classnum++;
}
if (dt.Rows[i]["verify"].ToString() == "1" && dt.Rows[i]["mobiletemplate"].ToString() != "")
{
string Url = "/Mobile/Class.aspx?classid=" + dt.Rows[i]["classid"].ToString() + "&channelid=" + dt.Rows[i]["channelid"].ToString();
Url = cm.SiteUrl + Url;
Tools.StaticHtml.getUrltoHtml(Url, context.Server.MapPath("/Mobile/c" + dt.Rows[i]["classid"].ToString() + ".html"));
classnum++;
}
DataTable dtinfo = bll.GetDataTable("*", bll.GetModelInfo(int.Parse(dt.Rows[i]["channelid"].ToString())).modeltable, " where verify = 1 and classid = " + dt.Rows[i]["classid"].ToString(), null, "");
for (int j = 0; j < dtinfo.Rows.Count; j++)
{
if (dt.Rows[i]["verify"].ToString() == "1" && dt.Rows[i]["contentinfotemplate"].ToString() != "")
{
string Url = "/Html/InfoID.aspx?classid=" + dt.Rows[i]["classid"].ToString() + "&channelid=" + dt.Rows[i]["channelid"].ToString() + "&infoid=" + dtinfo.Rows[j]["InfoID"].ToString();
Url = cm.SiteUrl + Url;
Tools.StaticHtml.getUrltoHtml(Url, context.Server.MapPath("/Html/" + dtinfo.Rows[j]["InfoID"].ToString() + ".html"));
htmlnum++;
}
if (dt.Rows[i]["verify"].ToString() == "1" && dt.Rows[i]["mobileinfotemplate"].ToString() != "")
{
string Url = "/Mobile/InfoID.aspx?classid=" + dt.Rows[i]["classid"].ToString() + "&channelid=" + dt.Rows[i]["channelid"].ToString() + "&infoid=" + dtinfo.Rows[j]["InfoID"].ToString();
Url = cm.SiteUrl + Url;
Tools.StaticHtml.getUrltoHtml(Url, context.Server.MapPath("/Mobile/" + dtinfo.Rows[j]["InfoID"].ToString() + ".html"));
htmlnum++;
}
}
}
后面还有 12 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
