mirror of
https://github.com/qiandao-today/templates.git
synced 2025-04-05 21:53:42 +00:00
201 lines
5.2 KiB
JSON
201 lines
5.2 KiB
JSON
[
|
|
{
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "https://api.v2.rainyun.com/user/reward/tasks",
|
|
"headers": [
|
|
{
|
|
"name": "x-api-key",
|
|
"value": "{{ apikey }}"
|
|
},
|
|
{
|
|
"name": "User-Agent",
|
|
"value": "Apifox/1.0.0 (https://apifox.com)"
|
|
},
|
|
{
|
|
"name": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookies": [],
|
|
"data": "{\n \"task_name\": \"每日签到\"\n}"
|
|
},
|
|
"rule": {
|
|
"success_asserts": [
|
|
{
|
|
"re": "200",
|
|
"from": "status"
|
|
},
|
|
{
|
|
"re": "\"code\":30011",
|
|
"from": "content"
|
|
}
|
|
],
|
|
"failed_asserts": [],
|
|
"extract_variables": [
|
|
{
|
|
"name": "code",
|
|
"re": "\"code\":(.*?),\"",
|
|
"from": "content"
|
|
},
|
|
{
|
|
"name": "status",
|
|
"re": ".*",
|
|
"from": "status"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"comment": "判断条件成立",
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "{% if code == \"30011\" or status == \"200\" %}",
|
|
"headers": [],
|
|
"cookies": [],
|
|
"data": ""
|
|
},
|
|
"rule": {
|
|
"success_asserts": [],
|
|
"failed_asserts": [],
|
|
"extract_variables": []
|
|
}
|
|
},
|
|
{
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "api://util/urldecode",
|
|
"headers": [],
|
|
"cookies": [],
|
|
"data": "content=签到成功"
|
|
},
|
|
"rule": {
|
|
"success_asserts": [
|
|
{
|
|
"re": "200",
|
|
"from": "status"
|
|
}
|
|
],
|
|
"failed_asserts": [],
|
|
"extract_variables": [
|
|
{
|
|
"name": "message",
|
|
"re": "\"转换后\": \"(.*)\"",
|
|
"from": "content"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"comment": "判断条件不成立",
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "{% else %}",
|
|
"headers": [],
|
|
"cookies": [],
|
|
"data": ""
|
|
},
|
|
"rule": {
|
|
"success_asserts": [],
|
|
"failed_asserts": [],
|
|
"extract_variables": []
|
|
}
|
|
},
|
|
{
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "api://util/urldecode",
|
|
"headers": [],
|
|
"cookies": [],
|
|
"data": "content=今日已签到过啦~"
|
|
},
|
|
"rule": {
|
|
"success_asserts": [
|
|
{
|
|
"re": "200",
|
|
"from": "status"
|
|
}
|
|
],
|
|
"failed_asserts": [],
|
|
"extract_variables": [
|
|
{
|
|
"name": "message",
|
|
"re": "\"转换后\": \"(.*)\"",
|
|
"from": "content"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"comment": "判断块结束",
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "{% endif %}",
|
|
"headers": [],
|
|
"cookies": [],
|
|
"data": ""
|
|
},
|
|
"rule": {
|
|
"success_asserts": []
|
|
}
|
|
},
|
|
{
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "https://api.v2.rainyun.com/user/",
|
|
"headers": [
|
|
{
|
|
"name": "x-api-key",
|
|
"value": "{{ apikey }}"
|
|
},
|
|
{
|
|
"name": "User-Agent",
|
|
"value": "Apifox/1.0.0 (https://apifox.com)"
|
|
}
|
|
],
|
|
"cookies": [],
|
|
"data": ""
|
|
},
|
|
"rule": {
|
|
"success_asserts": [
|
|
{
|
|
"re": "200",
|
|
"from": "status"
|
|
}
|
|
],
|
|
"failed_asserts": [],
|
|
"extract_variables": [
|
|
{
|
|
"name": "jifen",
|
|
"re": "\"Points\":(.*?),\"",
|
|
"from": "content"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "api://util/urldecode",
|
|
"headers": [],
|
|
"cookies": [],
|
|
"data": "content={{message}},当前积分: {{jifen}}"
|
|
},
|
|
"rule": {
|
|
"success_asserts": [
|
|
{
|
|
"re": "200",
|
|
"from": "status"
|
|
}
|
|
],
|
|
"failed_asserts": [],
|
|
"extract_variables": [
|
|
{
|
|
"name": "__log__",
|
|
"re": "\"转换后\": \"(.*)\"",
|
|
"from": "content"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
] |