qd-today / templates

基于开源新版 QD 框架站发布的公共har模板库,仅供示例
1.1k stars 295 forks source link

QQNTR论坛 评论区 #24

Open AragonSnow opened 3 years ago

AragonSnow commented 3 years ago

HAR 模板名称

QQNTR论坛

作者信息

github-h

模板备注及说明

cookie

每日签到奖励

https://www.iya.app

HAR 文件名

QQNTR论坛.har

HAR 模板内容

[
{
    "request":
    {
        "method": "GET",
        "url": "https://www.iya.app/plugin.php?id=dsu_paulsign%3Asign",
        "headers": [
        {
            "name": "Host",
            "value": "www.iya.app"
        },
        {
            "name": "Connection",
            "value": "keep-alive"
        },
        {
            "name": "sec-ch-ua",
            "value": "\"Google Chrome\";v=\"103\", \"Chromium\";v=\"103\", \"Not=A?Brand\";v=\"24\""
        },
        {
            "name": "sec-ch-ua-mobile",
            "value": "?0"
        },
        {
            "name": "sec-ch-ua-platform",
            "value": "\"Windows\""
        },
        {
            "name": "Upgrade-Insecure-Requests",
            "value": "1"
        },
        {
            "name": "User-Agent",
            "value": "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36"
        },
        {
            "name": "Accept",
            "value": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7"
        },
        {
            "name": "Sec-Fetch-Site",
            "value": "same-origin"
        },
        {
            "name": "Sec-Fetch-Mode",
            "value": "navigate"
        },
        {
            "name": "Sec-Fetch-User",
            "value": "?1"
        },
        {
            "name": "Sec-Fetch-Dest",
            "value": "document"
        },
        {
            "name": "Referer",
            "value": "https://www.iya.app/"
        },
        {
            "name": "Accept-Encoding",
            "value": "gzip, deflate, br"
        },
        {
            "name": "Accept-Language",
            "value": "zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6"
        },
        {
            "name": "Cookie",
            "value": "{{cookie}}"
        }],
        "cookies": [],
        "data": "",
        "mimeType": ""
    },
    "rule":
    {
        "success_asserts": [
        {
            "re": "200",
            "from": "status"
        }],
        "failed_asserts": [],
        "extract_variables": [
        {
            "name": "formhash",
            "re": "formhash=(.+?)&",
            "from": "content"
        }]
    }
},
{
    "request":
    {
        "method": "POST",
        "url": "https://www.iya.app/plugin.php?id=dsu_paulsign%3Asign&operation=qiandao&infloat=1&inajax=1",
        "headers": [
        {
            "name": "Host",
            "value": "www.iya.app"
        },
        {
            "name": "Connection",
            "value": "keep-alive"
        },
        {
            "name": "Cache-Control",
            "value": "max-age=0"
        },
        {
            "name": "sec-ch-ua",
            "value": "\"Google Chrome\";v=\"103\", \"Chromium\";v=\"103\", \"Not=A?Brand\";v=\"24\""
        },
        {
            "name": "sec-ch-ua-mobile",
            "value": "?0"
        },
        {
            "name": "sec-ch-ua-platform",
            "value": "\"Windows\""
        },
        {
            "name": "Upgrade-Insecure-Requests",
            "value": "1"
        },
        {
            "name": "Origin",
            "value": "https://www.iya.app"
        },
        {
            "name": "Content-Type",
            "value": "application/x-www-form-urlencoded"
        },
        {
            "name": "User-Agent",
            "value": "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36"
        },
        {
            "name": "Accept",
            "value": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7"
        },
        {
            "name": "Sec-Fetch-Site",
            "value": "same-origin"
        },
        {
            "name": "Sec-Fetch-Mode",
            "value": "navigate"
        },
        {
            "name": "Sec-Fetch-User",
            "value": "?1"
        },
        {
            "name": "Sec-Fetch-Dest",
            "value": "iframe"
        },
        {
            "name": "Referer",
            "value": "https://www.iya.app/plugin.php?id=dsu_paulsign%3Asign"
        },
        {
            "name": "Accept-Encoding",
            "value": "gzip, deflate, br"
        },
        {
            "name": "Accept-Language",
            "value": "zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6"
        }],
        "cookies": [],
        "data": "formhash={{formhash|urlencode}}&qdxq=kx&qdmode=1&todaysay=%E5%8D%B7%E4%B8%8D%E5%8A%A8%E4%BA%86%EF%BC%8C%E6%88%91%E8%A6%81%E8%BA%BA%E5%B9%B3&fastreply=0",
        "mimeType": "application/x-www-form-urlencoded"
    },
    "rule":
    {
        "success_asserts": [
        {
            "re": "200",
            "from": "status"
        }],
        "failed_asserts": [],
        "extract_variables": []
    }
},
{
    "comment": "判断签到成功+获取积分",
    "request":
    {
        "method": "GET",
        "url": "https://www.iya.app/plugin.php?id=dsu_paulsign%3Asign",
        "headers": [
        {
            "name": "Host",
            "value": "www.iya.app"
        },
        {
            "name": "Connection",
            "value": "keep-alive"
        },
        {
            "name": "sec-ch-ua",
            "value": "\"Google Chrome\";v=\"103\", \"Chromium\";v=\"103\", \"Not=A?Brand\";v=\"24\""
        },
        {
            "name": "sec-ch-ua-mobile",
            "value": "?0"
        },
        {
            "name": "sec-ch-ua-platform",
            "value": "\"Windows\""
        },
        {
            "name": "Upgrade-Insecure-Requests",
            "value": "1"
        },
        {
            "name": "User-Agent",
            "value": "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36"
        },
        {
            "name": "Accept",
            "value": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7"
        },
        {
            "name": "Sec-Fetch-Site",
            "value": "same-origin"
        },
        {
            "name": "Sec-Fetch-Mode",
            "value": "navigate"
        },
        {
            "name": "Sec-Fetch-User",
            "value": "?1"
        },
        {
            "name": "Sec-Fetch-Dest",
            "value": "document"
        },
        {
            "name": "Referer",
            "value": "https://www.iya.app/"
        },
        {
            "name": "Accept-Encoding",
            "value": "gzip, deflate, br"
        },
        {
            "name": "Accept-Language",
            "value": "zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6"
        }],
        "cookies": [],
        "data": "",
        "mimeType": ""
    },
    "rule":
    {
        "success_asserts": [
        {
            "re": "200",
            "from": "status"
        }],
        "failed_asserts": [
        {
            "re": "您需要先登录才能继续本操作",
            "from": "content"
        },
        {
            "re": "今天签到了吗?",
            "from": "content"
        }],
        "extract_variables": [
        {
            "name": "log_all",
            "re": "累计已签到: <b>(.+?)</b> 天</p>",
            "from": "content"
        },
        {
            "name": "log_add",
            "re": "已累计签到:<b>(.+?)</b> 天</p>",
            "from": "content"
        },
        {
            "name": "log_value",
            "re": "贡献 <font color=\"#ff00cc\"><b>(.+?)</b></font>",
            "from": "content"
        }]
    }
},
{
    "comment": "生成日志",
    "request":
    {
        "method": "POST",
        "url": "api://util/urldecode",
        "headers": [],
        "cookies": [],
        "data": "content=累计已签到: {{log_add}} 天 , 本月已累计签到: {{log_all}} 天 , 获得的总奖励为:贡献 {{log_value}}"
    },
    "rule":
    {
        "success_asserts": [
        {
            "re": "200",
            "from": "status"
        },
        {
            "re": "\"状态\": \"200\"",
            "from": "content"
        }],
        "failed_asserts": [],
        "extract_variables": [
        {
            "name": "__log__",
            "re": "\"转换后\": \"(.*)\"",
            "from": "content"
        }]
    }
}]
bfmen commented 1 year ago

2023-01-19 15:22:38 日志:Failed at 1/4 request, Fail assert: {"re": "200", "from": "status"} from success_asserts, Response Error : HTTP 301: Moved Permanently, Request URL: https://iya.app/plugin.php?id=dsu_paulsign%3Asign