CmsWeb/App_Code/ToWap.cs

(开头部分) 7KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Cms.Common;
using System.Data;
using System.Text.RegularExpressions;
/// <summary>
///ToWap 的摘要说明
/// </summary>
public class ToWap
{
	public ToWap()
	{
		//
		//TODO: 在此处添加构造函数逻辑
		//
	}
    #region 返回栏目手机站列表url==========================================
    public static string getCloumnUrl(int id)
    {
        string result = "";
        Cms.BLL.C_Column bllColumn = new Cms.BLL.C_Column();
        DataSet ds = bllColumn.GetList("classId=" + id);
        if (ds != null && ds.Tables[0].Rows.Count > 0)
        {
            result = ds.Tables[0].Rows[0]["w_linkUrl"].ToString();
        }
        return result;
    }

    #endregion

    #region 返回栏目手机站内容链接======================================
    public static string getContentUrl(int id)
    {
        string result = "";
        Cms.BLL.C_Column bllColumn = new Cms.BLL.C_Column();
        DataSet ds = bllColumn.GetList("classId=" + id);
        if (ds != null && ds.Tables[0].Rows.Count > 0)
        {
            result = GetToHtml(ds.Tables[0].Rows[0]["w_contentUrl"].ToString());
        }
        return result;
    }

    #endregion

    #region 返回栏目名称=====================================
    public static string getCloumnName(int id)
    {
        string result = "";
        Cms.BLL.C_Column bllColumn = new Cms.BLL.C_Column();
        DataSet ds = bllColumn.GetList("classId=" + id);
        if (ds != null && ds.Tables[0].Rows.Count > 0)
        {
            result = ds.Tables[0].Rows[0]["className"].ToString();
        }
        return result;
    }
后面还有 143 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。