Web/kzcms/core/_Click.ashx.cs

(完整代码) 935B

using System.Web;

namespace Web.core
{
    /// <summary>
    /// _Server 的摘要说明
    /// </summary>
    public class _Click : IHttpHandler
    {
        private int ID = Kscor.Common.DNTRequest.GetInt("ID", 0);
        public void ProcessRequest(HttpContext context)
        {
            string html = "";
            if (ID > 0) 
            {
                Kscor.BLL.Article BLLArticle = new Kscor.BLL.Article();
                Kscor.Model.Article ModelArticle = BLLArticle.Get(ID);
                if (ModelArticle != null)
                {
                    html = ModelArticle.Clicks.ToString();
                }
            }

            context.Response.Write("document.write(" + html + ")");
            context.Response.End();
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}

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

AI 解读 AI

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

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