SuLei.UI/HtmlBuilder.cs
(开头部分) 16KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.IO;
using System.Diagnostics;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Web;
using SuLei.Common;
using System.Text.RegularExpressions;
namespace SuLei.Web.UI
{
public class HtmlBuilder
{
BLL.sl_article_category objarticle_category = new BLL.sl_article_category();//文章分类
BLL.sl_site_channel objchannel = new BLL.sl_site_channel();//频道
BLL.sl_sites objchannel_site = new BLL.sl_sites();//系统站点
BLL.sl_article objarticle = new BLL.sl_article();//文章
Model.sysconfig config = new BLL.sysconfig().loadConfig();//站点配置
Model.sl_site_channel modelchanel = new Model.sl_site_channel();//频道实体类
private const string urlstr = "\"{0}tools/admin_ajax.ashx?action=get_builder_html&lang={1}&html_filename=&indexy=&aspx_filename={2}&catalogue={3}\"";
public HtmlBuilder()
{
//构造函数
}
#region 获取生成静态地址
/// <summary>
/// 获取生成静态地址
/// </summary>
/// <param name="context"></param>
public void getpublishsite(HttpContext context)
{
string lang = SLRequest.GetQueryString("lang");
string name = SLRequest.GetQueryString("name");
string type = SLRequest.GetQueryString("type");
StringBuilder sbjson = new StringBuilder();
//获得URL配置列表
BLL.url_rewrite bll = new BLL.url_rewrite();
List<Model.url_rewrite> ls = (!string.IsNullOrEmpty(type)) ? bll.GetList(name, type) : bll.GetList(name);
string linkurl = string.Empty;
sbjson.Append("[");
if (type == "indexlist")
{
#region 针对特殊需求
List<Model.url_rewrite> ls2 = (!string.IsNullOrEmpty("list")) ? bll.GetList(name, "list") : bll.GetList(name, "list");
foreach (Model.url_rewrite modeltrewrite2 in ls2)
{
if (modeltrewrite2.url_rewrite_items.Count > 0)
{
if (modeltrewrite2.channel == string.Empty || modeltrewrite2.channel == name)
{
//遍历URL字典的子节点
foreach (Model.url_rewrite_item item2 in modeltrewrite2.url_rewrite_items)
{
后面还有 280 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
