ashx/pubuliu.ashx

(开头部分) 2KB

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

<%@ WebHandler Language="C#" Class="pubuliu" %>

using System;
using System.Web;

public class pubuliu : IHttpHandler
{

    public void ProcessRequest(HttpContext context)
    {
        context.Response.ContentType = "application/Json";

        string action = context.Request.QueryString["action"];
        if (string.IsNullOrEmpty(action))
        {
            return;
        }
        else
        {
            switch (action)
            {
                case "pubuliu":
                    //string json = TestPage(context);

                    if (!string.IsNullOrEmpty(context.Request.QueryString["page"]))
                    {
                        if (Convert.ToInt32(context.Request.QueryString["page"]) > 10)
                        {
                            context.Response.Write("[]");
                            return;
                        }
                    }
                    string json = string.Empty;
                    for (int i = 1; i < 45; i++)
                    {
                        json += "{";
                        json += string.Format("\"img\":\"images/P{0}.jpg\",", i);
                        json += string.Format("\"height\":\"{0}\",", i);
                        json += string.Format("\"title\":\"时间{0}<br/>瀑布流第<font style='color:red; font-size:40px;'>{1}</font>页数据\"", DateTime.Now.ToString(),context.Request.QueryString["page"]);
                        json += "},";
                    }
                    json = json.Substring(0, json.Length - 1);
                    context.Response.Write("[" + json + "]");
                    context.ApplicationInstance.CompleteRequest();
                    break;
                default:
                    context.Response.Write("");
                    context.ApplicationInstance.CompleteRequest();
                    return;
            }
        }


    }

    public bool IsReusable
    {
        get
        {
            return false;
后面还有 4 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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