qd-today / templates

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

Dukou 评论区 #632

Open fl0w1nd opened 8 months ago

fl0w1nd commented 8 months ago

HAR 模板名称

飞龙(原Dukou)机场签到

作者信息

fl0w1nd,github-h

模板备注及说明

username,password

每日签到

https://flzt.top/

HAR 文件名

dukou.har

其他信息

No response

HAR 模板内容

[
{
    "request":
    {
        "method": "GET",
        "url": "https://flzt.top/user/login",
        "headers": [
        {
            "name": "Host",
            "value": "flzt.top"
        },
        {
            "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": "none"
        },
        {
            "name": "Sec-Fetch-Mode",
            "value": "navigate"
        },
        {
            "name": "Sec-Fetch-User",
            "value": "?1"
        },
        {
            "name": "Sec-Fetch-Dest",
            "value": "document"
        },
        {
            "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": [],
        "extract_variables": []
    }
},
{
    "comment": "登录",
    "request":
    {
        "method": "POST",
        "url": "https://flzt.top/api/token",
        "headers": [
        {
            "name": "Host",
            "value": "flzt.top"
        },
        {
            "name": "Connection",
            "value": "keep-alive"
        },
        {
            "name": "sec-ch-ua",
            "value": "\"Google Chrome\";v=\"103\", \"Chromium\";v=\"103\", \"Not=A?Brand\";v=\"24\""
        },
        {
            "name": "Accept",
            "value": "application/json, text/plain, */*"
        },
        {
            "name": "Content-Type",
            "value": "application/json;charset=UTF-8"
        },
        {
            "name": "sec-ch-ua-mobile",
            "value": "?0"
        },
        {
            "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": "sec-ch-ua-platform",
            "value": "\"Windows\""
        },
        {
            "name": "Origin",
            "value": "https://flzt.top"
        },
        {
            "name": "Sec-Fetch-Site",
            "value": "same-origin"
        },
        {
            "name": "Sec-Fetch-Mode",
            "value": "cors"
        },
        {
            "name": "Sec-Fetch-Dest",
            "value": "empty"
        },
        {
            "name": "Referer",
            "value": "https://flzt.top/user/login"
        },
        {
            "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": "{\"email\":\"{{username}}\",\"passwd\":\"{{password}}\"}",
        "mimeType": "application/json"
    },
    "rule":
    {
        "success_asserts": [
        {
            "re": "200",
            "from": "status"
        }],
        "failed_asserts": [],
        "extract_variables": [
        {
            "name": "token",
            "re": "\"token\":\"(.+?)\"",
            "from": "content"
        }]
    }
},
{
    "comment": "签到请求",
    "request":
    {
        "method": "GET",
        "url": "https://flzt.top/api/user/checkin",
        "headers": [
        {
            "name": "Host",
            "value": "flzt.top"
        },
        {
            "name": "Connection",
            "value": "keep-alive"
        },
        {
            "name": "sec-ch-ua",
            "value": "\"Google Chrome\";v=\"103\", \"Chromium\";v=\"103\", \"Not=A?Brand\";v=\"24\""
        },
        {
            "name": "Accept",
            "value": "application/json, text/plain, */*"
        },
        {
            "name": "sec-ch-ua-mobile",
            "value": "?0"
        },
        {
            "name": "Access-Token",
            "value": "{{token}}"
        },
        {
            "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": "sec-ch-ua-platform",
            "value": "\"Windows\""
        },
        {
            "name": "Sec-Fetch-Site",
            "value": "same-origin"
        },
        {
            "name": "Sec-Fetch-Mode",
            "value": "cors"
        },
        {
            "name": "Sec-Fetch-Dest",
            "value": "empty"
        },
        {
            "name": "Referer",
            "value": "https://flzt.top/user/index"
        },
        {
            "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": [],
        "extract_variables": []
    }
},
{
    "request":
    {
        "method": "GET",
        "url": "https://flzt.top/api/user/info",
        "headers": [
        {
            "name": "Host",
            "value": "flzt.top"
        },
        {
            "name": "Connection",
            "value": "keep-alive"
        },
        {
            "name": "sec-ch-ua",
            "value": "\"Google Chrome\";v=\"103\", \"Chromium\";v=\"103\", \"Not=A?Brand\";v=\"24\""
        },
        {
            "name": "Accept",
            "value": "application/json, text/plain, */*"
        },
        {
            "name": "sec-ch-ua-mobile",
            "value": "?0"
        },
        {
            "name": "Access-Token",
            "value": "{{token}}"
        },
        {
            "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": "sec-ch-ua-platform",
            "value": "\"Windows\""
        },
        {
            "name": "Sec-Fetch-Site",
            "value": "same-origin"
        },
        {
            "name": "Sec-Fetch-Mode",
            "value": "cors"
        },
        {
            "name": "Sec-Fetch-Dest",
            "value": "empty"
        },
        {
            "name": "Referer",
            "value": "https://flzt.top/user/index"
        },
        {
            "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": "\"isAbleToCheckin\":true",
            "from": "content"
        }],
        "extract_variables": [
        {
            "name": "name",
            "re": "\"name\":\"(.+?)\"",
            "from": "content"
        },
        {
            "name": "log_value",
            "re": "\"checkin_trans\":(.+?),",
            "from": "content"
        }]
    }
},
{
    "comment": "生成日志",
    "request":
    {
        "method": "POST",
        "url": "api://util/urldecode",
        "headers": [],
        "cookies": [],
        "data": "content=获得了 {{log_value}} MB流量"
    },
    "rule":
    {
        "success_asserts": [
        {
            "re": "200",
            "from": "status"
        },
        {
            "re": "\"状态\": \"200\"",
            "from": "content"
        }],
        "failed_asserts": [],
        "extract_variables": [
        {
            "name": "__log__",
            "re": "\"转换后\": \"(.*)\"",
            "from": "content"
        }]
    }
}]
github-h commented 4 months ago

复活🌶

Melody-Test commented 4 months ago

Failed at 1/10 request, Fail assert: {"re": "200", "from": "status"} from success_asserts, Response Error : HTTP 599: quictls SSL_connect: SSL_ERROR_SYSCALL in connection to flzt.top:443 , Request URL: https://{{host}}/api/token 还是不行 请问怎么解决 flzt.top 加代理了 也是这样

fl0w1nd commented 4 months ago

Failed at 1/10 request, Fail assert: {"re": "200", "from": "status"} from success_asserts, Response Error : HTTP 599: quictls SSL_connect: SSL_ERROR_SYSCALL in connection to flzt.top:443 , Request URL: https://{{host}}/api/token 还是不行 请问怎么解决 flzt.top 加代理了 也是这样

CleanShot 2024-07-27 at 02 22 40@2x 经测试无异常,你看看是不是参数填写有误,或者是本地网络的问题

skipandgoon commented 2 months ago

2024-10-01 11:42:48 日志:Failed at 1/5 request, Fail assert: {"re": "200", "from": "status"} from success_asserts, Response Error : HTTP 599: Recv failure: Connection reset by peer, Request URL: https://flzt.top/user/login

jijishenghuo commented 2 months ago

2024-10-04_203129 我也是这样的大佬!

vgd000 commented 3 weeks ago

不能用了,一样的错误