Add HAR: pandafly-自动续期 (#861)

Co-authored-by: trainliang <trainliang@users.noreply.github.com>
This commit is contained in:
github-actions[bot] 2025-01-28 18:20:53 +08:00 committed by GitHub
parent b5f844a402
commit f06511f6e8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 495 additions and 0 deletions

483
pandafly-自动续期.har Normal file
View File

@ -0,0 +1,483 @@
[
{
"request": {
"method": "POST",
"url": "https://pandafly.site/api/v1/passport/auth/login",
"headers": [
{
"name": ":authority",
"value": "pandafly.site"
},
{
"name": ":method",
"value": "POST"
},
{
"name": ":path",
"value": "/api/v1/passport/auth/login"
},
{
"name": ":scheme",
"value": "https"
},
{
"name": "accept",
"value": "application/json, text/plain, */*"
},
{
"name": "accept-encoding",
"value": "gzip, deflate, br, zstd"
},
{
"name": "accept-language",
"value": "zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6"
},
{
"name": "content-language",
"value": "zh-CN"
},
{
"name": "content-type",
"value": "application/x-www-form-urlencoded"
},
{
"name": "dnt",
"value": "1"
},
{
"name": "origin",
"value": "https://pandafly.site"
},
{
"name": "priority",
"value": "u=1, i"
},
{
"name": "referer",
"value": "https://pandafly.site/"
},
{
"name": "sec-ch-ua",
"value": "\"Not A(Brand\";v=\"8\", \"Chromium\";v=\"132\", \"Microsoft Edge\";v=\"132\""
},
{
"name": "sec-ch-ua-mobile",
"value": "?0"
},
{
"name": "sec-ch-ua-platform",
"value": "\"macOS\""
},
{
"name": "sec-fetch-dest",
"value": "empty"
},
{
"name": "sec-fetch-mode",
"value": "cors"
},
{
"name": "sec-fetch-site",
"value": "same-origin"
},
{
"name": "user-agent",
"value": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0"
}
],
"cookies": [],
"data": "email={{ username |urlencode}}&password={{ password |urlencode}}",
"mimeType": "application/x-www-form-urlencoded"
},
"rule": {
"success_asserts": [
{
"re": "200",
"from": "status"
}
],
"failed_asserts": [],
"extract_variables": [
{
"name": "token",
"re": "\"auth_data\":\"([^\"]+)\"",
"from": "content"
}
]
}
},
{
"request": {
"method": "POST",
"url": "https://pandafly.site/api/v1/user/order/save",
"headers": [
{
"name": ":authority",
"value": "pandafly.site"
},
{
"name": ":method",
"value": "POST"
},
{
"name": ":path",
"value": "/api/v1/user/order/save"
},
{
"name": ":scheme",
"value": "https"
},
{
"name": "accept",
"value": "application/json, text/plain, */*"
},
{
"name": "accept-encoding",
"value": "gzip, deflate, br, zstd"
},
{
"name": "accept-language",
"value": "zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6"
},
{
"name": "content-language",
"value": "zh-CN"
},
{
"name": "content-type",
"value": "application/x-www-form-urlencoded"
},
{
"name": "dnt",
"value": "1"
},
{
"name": "origin",
"value": "https://pandafly.site"
},
{
"name": "priority",
"value": "u=1, i"
},
{
"name": "referer",
"value": "https://pandafly.site/"
},
{
"name": "sec-ch-ua",
"value": "\"Not A(Brand\";v=\"8\", \"Chromium\";v=\"132\", \"Microsoft Edge\";v=\"132\""
},
{
"name": "sec-ch-ua-mobile",
"value": "?0"
},
{
"name": "sec-ch-ua-platform",
"value": "\"macOS\""
},
{
"name": "sec-fetch-dest",
"value": "empty"
},
{
"name": "sec-fetch-mode",
"value": "cors"
},
{
"name": "sec-fetch-site",
"value": "same-origin"
},
{
"name": "user-agent",
"value": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0"
},
{
"name": "authorization",
"value": "{{token}}"
}
],
"cookies": [],
"data": "plan_id=1&period=month_price",
"mimeType": "application/x-www-form-urlencoded"
},
"rule": {
"success_asserts": [
{
"re": "200",
"from": "status"
}
],
"failed_asserts": [],
"extract_variables": [
{
"name": "order",
"re": "\"data\":\"([^\"]+)\"",
"from": "content"
}
]
}
},
{
"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": "\"时间戳\":([^\"]+),",
"from": "content"
}
]
}
},
{
"request": {
"method": "GET",
"url": "https://pandafly.site/api/v1/user/order/detail?trade_no={{order|urlencode}}&t={{time|urlencode}}132",
"headers": [
{
"name": ":authority",
"value": "pandafly.site"
},
{
"name": ":method",
"value": "GET"
},
{
"name": ":scheme",
"value": "https"
},
{
"name": "accept",
"value": "application/json, text/plain, */*"
},
{
"name": "accept-encoding",
"value": "gzip, deflate, br, zstd"
},
{
"name": "accept-language",
"value": "zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6"
},
{
"name": "content-language",
"value": "zh-CN"
},
{
"name": "dnt",
"value": "1"
},
{
"name": "priority",
"value": "u=1, i"
},
{
"name": "referer",
"value": "https://pandafly.site/"
},
{
"name": "sec-ch-ua",
"value": "\"Not A(Brand\";v=\"8\", \"Chromium\";v=\"132\", \"Microsoft Edge\";v=\"132\""
},
{
"name": "sec-ch-ua-mobile",
"value": "?0"
},
{
"name": "sec-ch-ua-platform",
"value": "\"macOS\""
},
{
"name": "sec-fetch-dest",
"value": "empty"
},
{
"name": "sec-fetch-mode",
"value": "cors"
},
{
"name": "sec-fetch-site",
"value": "same-origin"
},
{
"name": "user-agent",
"value": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0"
},
{
"name": "authorization",
"value": "{{token}}"
}
],
"cookies": []
},
"rule": {
"success_asserts": [
{
"re": "200",
"from": "status"
}
],
"failed_asserts": [],
"extract_variables": []
}
},
{
"request": {
"method": "POST",
"url": "https://pandafly.site/api/v1/user/order/checkout",
"headers": [
{
"name": ":authority",
"value": "pandafly.site"
},
{
"name": ":method",
"value": "POST"
},
{
"name": ":path",
"value": "/api/v1/user/order/checkout"
},
{
"name": ":scheme",
"value": "https"
},
{
"name": "accept",
"value": "application/json, text/plain, */*"
},
{
"name": "accept-encoding",
"value": "gzip, deflate, br, zstd"
},
{
"name": "accept-language",
"value": "zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6"
},
{
"name": "content-language",
"value": "zh-CN"
},
{
"name": "content-type",
"value": "application/x-www-form-urlencoded"
},
{
"name": "dnt",
"value": "1"
},
{
"name": "origin",
"value": "https://pandafly.site"
},
{
"name": "priority",
"value": "u=1, i"
},
{
"name": "referer",
"value": "https://pandafly.site/"
},
{
"name": "sec-ch-ua",
"value": "\"Not A(Brand\";v=\"8\", \"Chromium\";v=\"132\", \"Microsoft Edge\";v=\"132\""
},
{
"name": "sec-ch-ua-mobile",
"value": "?0"
},
{
"name": "sec-ch-ua-platform",
"value": "\"macOS\""
},
{
"name": "sec-fetch-dest",
"value": "empty"
},
{
"name": "sec-fetch-mode",
"value": "cors"
},
{
"name": "sec-fetch-site",
"value": "same-origin"
},
{
"name": "user-agent",
"value": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0"
},
{
"name": "authorization\n",
"value": "{{token}}"
}
],
"cookies": [],
"data": "trade_no={{order|urlencode}}&method=1",
"mimeType": "application/x-www-form-urlencoded"
},
"rule": {
"success_asserts": [
{
"re": "200",
"from": "status"
}
],
"failed_asserts": [
{
"re": "\"data\":false",
"from": "content"
}
],
"extract_variables": [
{
"name": "status",
"re": "\"data\":([^\"]+)}",
"from": "content"
}
]
}
},
{
"comment": "Unicode转换",
"request": {
"method": "POST",
"url": "api://util/unicode",
"headers": [],
"cookies": [],
"data": "html_unescape=false&content=续期状态:{{ternary(status == \"true\", \"已完成^_^\", \"续期异常!\") }}"
},
"rule": {
"success_asserts": [
{
"re": "200",
"from": "status"
},
{
"re": "\"状态\": \"200\"",
"from": "content"
}
],
"failed_asserts": [],
"extract_variables": [
{
"name": "__log__",
"re": "\"转换后\": \"(.*)\"",
"from": "content"
}
]
}
}
]

File diff suppressed because one or more lines are too long