mirror of
https://github.com/qiandao-today/templates.git
synced 2025-04-04 20:23:05 +00:00
348 lines
10 KiB
JSON
348 lines
10 KiB
JSON
[
|
||
{
|
||
"comment": "返回对应时间戳和时间",
|
||
"request": {
|
||
"method": "POST",
|
||
"url": "api://util/timestamp",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"data": "ts=&form=&dt="
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "200",
|
||
"from": "status"
|
||
}
|
||
],
|
||
"failed_asserts": [],
|
||
"extract_variables": [
|
||
{
|
||
"name": "sj",
|
||
"re": "\"16位时间戳\": (\\d{13})",
|
||
"from": "content"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"comment": "登录",
|
||
"request": {
|
||
"method": "POST",
|
||
"url": "https://panso.pro/v1/user/login",
|
||
"headers": [
|
||
{
|
||
"name": "Host",
|
||
"value": "panso.pro"
|
||
},
|
||
{
|
||
"name": "Connection",
|
||
"value": "keep-alive"
|
||
},
|
||
{
|
||
"name": "sec-ch-ua",
|
||
"value": "\"Chromium\";v=\"122\", \"Not(A:Brand\";v=\"24\", \"Google Chrome\";v=\"122\""
|
||
},
|
||
{
|
||
"name": "X-Path",
|
||
"value": "/v1/user/login"
|
||
},
|
||
{
|
||
"name": "sec-ch-ua-mobile",
|
||
"value": "?0"
|
||
},
|
||
{
|
||
"name": "User-Agent",
|
||
"value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.6261.95 Safari/537.36"
|
||
},
|
||
{
|
||
"name": "Content-Type",
|
||
"value": "application/json"
|
||
},
|
||
{
|
||
"name": "Accept",
|
||
"value": "application/json, text/plain, */*"
|
||
},
|
||
{
|
||
"name": "X-Time",
|
||
"value": "{{sj}}"
|
||
},
|
||
{
|
||
"name": "sec-ch-ua-platform",
|
||
"value": "\"Windows\""
|
||
},
|
||
{
|
||
"name": "Origin",
|
||
"value": "https://panso.pro"
|
||
},
|
||
{
|
||
"name": "Sec-Fetch-Site",
|
||
"value": "same-origin"
|
||
},
|
||
{
|
||
"name": "Sec-Fetch-Mode",
|
||
"value": "cors"
|
||
},
|
||
{
|
||
"name": "Sec-Fetch-Dest",
|
||
"value": "empty"
|
||
},
|
||
{
|
||
"name": "Referer",
|
||
"value": "https://panso.pro/login"
|
||
},
|
||
{
|
||
"name": "Accept-Encoding",
|
||
"value": "gzip, deflate, br"
|
||
},
|
||
{
|
||
"name": "Accept-Language",
|
||
"value": "zh-CN,zh;q=0.9"
|
||
}
|
||
],
|
||
"cookies": [],
|
||
"data": "{\"username\":\"{{username}}\",\"password\":\"{{password}}\"}",
|
||
"mimeType": "application/json"
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "200",
|
||
"from": "status"
|
||
}
|
||
],
|
||
"failed_asserts": [],
|
||
"extract_variables": [
|
||
{
|
||
"name": "token",
|
||
"re": "\"token\":\"(.+)\"",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "yhm",
|
||
"re": "\"username\":\"(.*?)\"",
|
||
"from": "content"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"comment": "签到",
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "https://panso.pro/auth/v1/user/check_in?token=",
|
||
"headers": [
|
||
{
|
||
"name": "Host",
|
||
"value": "panso.pro"
|
||
},
|
||
{
|
||
"name": "Connection",
|
||
"value": "keep-alive"
|
||
},
|
||
{
|
||
"name": "sec-ch-ua",
|
||
"value": "\"Chromium\";v=\"122\", \"Not(A:Brand\";v=\"24\", \"Google Chrome\";v=\"122\""
|
||
},
|
||
{
|
||
"name": "X-Path",
|
||
"value": "/auth/v1/user/check_in"
|
||
},
|
||
{
|
||
"name": "sec-ch-ua-mobile",
|
||
"value": "?0"
|
||
},
|
||
{
|
||
"name": "Authorization",
|
||
"value": "Bearer {{token}}"
|
||
},
|
||
{
|
||
"name": "User-Agent",
|
||
"value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.6261.95 Safari/537.36"
|
||
},
|
||
{
|
||
"name": "Accept",
|
||
"value": "application/json, text/plain, */*"
|
||
},
|
||
{
|
||
"name": "X-Time",
|
||
"value": "{{sj}}"
|
||
},
|
||
{
|
||
"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://panso.pro/profile"
|
||
},
|
||
{
|
||
"name": "Accept-Encoding",
|
||
"value": "gzip, deflate, br"
|
||
},
|
||
{
|
||
"name": "Accept-Language",
|
||
"value": "zh-CN,zh;q=0.9"
|
||
}
|
||
],
|
||
"cookies": [],
|
||
"data": "",
|
||
"mimeType": ""
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "200",
|
||
"from": "status"
|
||
}
|
||
],
|
||
"failed_asserts": [],
|
||
"extract_variables": [
|
||
{
|
||
"name": "jl",
|
||
"re": "\"coin\":(\\d+)",
|
||
"from": "content"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"comment": "信息",
|
||
"request": {
|
||
"method": "GET",
|
||
"url": "https://panso.pro/auth/v1/user/info",
|
||
"headers": [
|
||
{
|
||
"name": "Host",
|
||
"value": "panso.pro"
|
||
},
|
||
{
|
||
"name": "Connection",
|
||
"value": "keep-alive"
|
||
},
|
||
{
|
||
"name": "sec-ch-ua",
|
||
"value": "\"Chromium\";v=\"122\", \"Not(A:Brand\";v=\"24\", \"Google Chrome\";v=\"122\""
|
||
},
|
||
{
|
||
"name": "X-Path",
|
||
"value": "/auth/v1/user/info"
|
||
},
|
||
{
|
||
"name": "sec-ch-ua-mobile",
|
||
"value": "?0"
|
||
},
|
||
{
|
||
"name": "Authorization",
|
||
"value": "Bearer {{token}}"
|
||
},
|
||
{
|
||
"name": "User-Agent",
|
||
"value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.6261.95 Safari/537.36"
|
||
},
|
||
{
|
||
"name": "Accept",
|
||
"value": "application/json, text/plain, */*"
|
||
},
|
||
{
|
||
"name": "X-Time",
|
||
"value": "{{sj}}"
|
||
},
|
||
{
|
||
"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://panso.pro/profile"
|
||
},
|
||
{
|
||
"name": "Accept-Encoding",
|
||
"value": "gzip, deflate, br"
|
||
},
|
||
{
|
||
"name": "Accept-Language",
|
||
"value": "zh-CN,zh;q=0.9"
|
||
}
|
||
],
|
||
"cookies": [],
|
||
"data": "",
|
||
"mimeType": ""
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "200",
|
||
"from": "status"
|
||
}
|
||
],
|
||
"failed_asserts": [],
|
||
"extract_variables": [
|
||
{
|
||
"name": "jf",
|
||
"re": "\"coin\":(\\d+)",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "lxqd",
|
||
"re": "\"continue_days\":(\\d+)",
|
||
"from": "content"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"comment": "Unicode转换",
|
||
"request": {
|
||
"method": "POST",
|
||
"url": "api://util/unicode",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"data": "html_unescape=false&content=用户名:{{yhm}}\\r\\n签到奖励:{{jl}}积分\\r\\n总积分:{{jf}},连续签到:{{lxqd}}天"
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "200",
|
||
"from": "status"
|
||
},
|
||
{
|
||
"re": "\"状态\": \"200\"",
|
||
"from": "content"
|
||
}
|
||
],
|
||
"failed_asserts": [],
|
||
"extract_variables": [
|
||
{
|
||
"name": "__log__",
|
||
"re": "\"转换后\": \"(.*)\"",
|
||
"from": "content"
|
||
}
|
||
]
|
||
}
|
||
}
|
||
] |