Skip to content

Commit

Permalink
Update HAR: 禁漫天堂 (#809)
Browse files Browse the repository at this point in the history
Co-authored-by: DreamAvalon <DreamAvalon@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and DreamAvalon authored Nov 26, 2024
1 parent e94623e commit 5e89306
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 4 deletions.
69 changes: 68 additions & 1 deletion 18comic.har
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,11 @@
"name": "status",
"re": ".+",
"from": "status"
},
{
"name": "location",
"re": ".+",
"from": "header-location"
}
]
}
Expand Down Expand Up @@ -279,7 +284,69 @@
"data": ""
},
"rule": {
"success_asserts": []
"success_asserts": [],
"failed_asserts": [],
"extract_variables": []
}
},
{
"comment": "判断条件成立",
"request": {
"method": "GET",
"url": "{% if int(status)==301 %}",
"headers": [],
"cookies": [],
"data": ""
},
"rule": {
"success_asserts": [],
"failed_asserts": [],
"extract_variables": []
}
},
{
"comment": "jmUrl",
"request": {
"method": "POST",
"url": "api://util/string/replace",
"headers": [],
"cookies": [],
"data": "r=json&p=&s=&t={{location}}"
},
"rule": {
"success_asserts": [
{
"re": "200",
"from": "status"
},
{
"re": "\"状态\": \"OK\"",
"from": "content"
}
],
"failed_asserts": [],
"extract_variables": [
{
"name": "jmUrl",
"re": "\"处理后字符串\": \"(.*)\"",
"from": "content"
}
]
}
},
{
"comment": "判断块结束",
"request": {
"method": "GET",
"url": "{% endif %}",
"headers": [],
"cookies": [],
"data": ""
},
"rule": {
"success_asserts": [],
"failed_asserts": [],
"extract_variables": []
}
},
{
Expand Down
Loading

0 comments on commit 5e89306

Please sign in to comment.