mirror of
https://github.com/qiandao-today/templates.git
synced 2025-04-05 21:53:42 +00:00
163 lines
4.7 KiB
JSON
163 lines
4.7 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": "time",
|
|
"re": "\"16位时间戳\": (\\d{13})",
|
|
"from": "content"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "https://yige.baidu.com/api/t2p/points/task_complete?t={{time}}&appname=pc&ptask_type=6",
|
|
"headers": [
|
|
{
|
|
"name": "Cookie",
|
|
"value": "{{cookie}}"
|
|
},
|
|
{
|
|
"name": "Host",
|
|
"value": "yige.baidu.com"
|
|
},
|
|
{
|
|
"name": "Referer",
|
|
"value": "https://yige.baidu.com/personal/center"
|
|
},
|
|
{
|
|
"name": "User-Agent",
|
|
"value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"
|
|
}
|
|
],
|
|
"cookies": []
|
|
},
|
|
"rule": {
|
|
"success_asserts": [
|
|
{
|
|
"re": "200",
|
|
"from": "status"
|
|
},
|
|
{
|
|
"re": "already signed",
|
|
"from": "content"
|
|
}
|
|
],
|
|
"failed_asserts": [
|
|
{
|
|
"re": "need login",
|
|
"from": "content"
|
|
},
|
|
{
|
|
"re": "permission denied",
|
|
"from": "content"
|
|
}
|
|
],
|
|
"extract_variables": []
|
|
}
|
|
},
|
|
{
|
|
"comment": "",
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "https://yige.baidu.com/api/t2p/points/account_balance?t={{time}}&appname=pc&need_detail=1",
|
|
"headers": [
|
|
{
|
|
"name": "Cookie",
|
|
"value": "{{cookie}}"
|
|
},
|
|
{
|
|
"name": "Host",
|
|
"value": "yige.baidu.com"
|
|
},
|
|
{
|
|
"name": "Referer",
|
|
"value": "https://yige.baidu.com/personal/center"
|
|
},
|
|
{
|
|
"name": "User-Agent",
|
|
"value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"
|
|
}
|
|
],
|
|
"cookies": []
|
|
},
|
|
"rule": {
|
|
"success_asserts": [
|
|
{
|
|
"re": "200",
|
|
"from": "status"
|
|
}
|
|
],
|
|
"failed_asserts": [
|
|
{
|
|
"re": "need login",
|
|
"from": "content"
|
|
}
|
|
],
|
|
"extract_variables": [
|
|
{
|
|
"name": "balance",
|
|
"re": "\"balance\":(\\d+)",
|
|
"from": "content"
|
|
},
|
|
{
|
|
"name": "balance_free",
|
|
"re": "\"balance_free\":(\\d+)",
|
|
"from": "content"
|
|
},
|
|
{
|
|
"name": "balance_paid",
|
|
"re": "\"balance_paid\":(\\d+)",
|
|
"from": "content"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"comment": "Unicode转换",
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "api://util/unicode",
|
|
"headers": [],
|
|
"cookies": [],
|
|
"data": "html_unescape=false&content=总电量:{{balance}},免费电量:{{balance_free}},付费电量:{{balance_paid}}"
|
|
},
|
|
"rule": {
|
|
"success_asserts": [
|
|
{
|
|
"re": "200",
|
|
"from": "status"
|
|
},
|
|
{
|
|
"re": "\"状态\": \"200\"",
|
|
"from": "content"
|
|
}
|
|
],
|
|
"failed_asserts": [],
|
|
"extract_variables": [
|
|
{
|
|
"name": "__log__",
|
|
"re": "\"转换后\": \"(.*)\"",
|
|
"from": "content"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
] |