HLW/article.aspx.cs

(完整代码) 1KB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;

namespace HLW
{
    public partial class article : System.Web.UI.Page
    {
        BLL.Channel bll = new BLL.Channel();
        public Model.Channel mo = new Model.Channel();
        public StringBuilder json = new StringBuilder();
        public string ads_1 = "", ads_2 = "", ads_3 = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            int cid = 0;
            if (Request.QueryString["cid"] != null)
            {
                cid = int.Parse(Request.QueryString["cid"]);
                mo = bll.GetModel(cid);
                json = (new NC.NCPub()).getNSList((int)mo.c_pid, (int)mo.c_id);
                BLL.ads bads = new BLL.ads();
                List<Model.ads> mads = new List<Model.ads>();
                string sw = " c_id=" + mo.c_id;
                if (bads.GetRecordCount(sw) > 0)
                {
                    mads = bads.GetModelList(sw);
                    foreach (Model.ads ma in mads)
                    {
                        if (ma.p_point == "上")
                            ads_1 = ma.p_contents;
                        if (ma.p_point == "中")
                            ads_2 = ma.p_contents;
                        if (ma.p_point == "下")
                            ads_3 = ma.p_contents;
                    }
                }
            }
            else
            {
                Response.Redirect("/index.htm");
            }
        }
 
    }
}

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

AI 解读

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

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