templates/边界AI.har
github-actions[bot] 9a4f21d7c8
Add HAR: 边界AI (#775)
Co-authored-by: loveyanglove <loveyanglove@users.noreply.github.com>
2024-10-17 23:00:46 +08:00

276 lines
8.4 KiB
JSON

[
{
"comment": "账号密码登录",
"request": {
"method": "POST",
"url": "https://ai1foo.com/api/v1/user/login",
"headers": [
{
"name": "Host",
"value": "ai1foo.com"
},
{
"name": "Connection",
"value": "keep-alive"
},
{
"name": "sec-ch-ua",
"value": "\"Chromium\";v=\"122\", \"Not(A:Brand\";v=\"24\", \"Google Chrome\";v=\"122\""
},
{
"name": "Content-Type",
"value": "application/json"
},
{
"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": "app-name",
"value": "bianjie"
},
{
"name": "sec-ch-ua-platform",
"value": "\"Windows\""
},
{
"name": "Accept",
"value": "*/*"
},
{
"name": "Origin",
"value": "https://ai1foo.com"
},
{
"name": "Sec-Fetch-Site",
"value": "same-origin"
},
{
"name": "Sec-Fetch-Mode",
"value": "cors"
},
{
"name": "Sec-Fetch-Dest",
"value": "empty"
},
{
"name": "Referer",
"value": "https://ai1foo.com/login"
},
{
"name": "Accept-Encoding",
"value": "gzip, deflate, br"
},
{
"name": "Accept-Language",
"value": "zh-CN,zh;q=0.9"
}
],
"cookies": [],
"data": "{\"user\":\"{{username}}\",\"pass\":\"{{password}}\"}",
"mimeType": "application/json"
},
"rule": {
"success_asserts": [
{
"re": "200",
"from": "status"
},
{
"re": "ok",
"from": "content"
}
],
"failed_asserts": [
{
"re": "用户不存在或密码错误",
"from": "content"
}
],
"extract_variables": [
{
"name": "yhm",
"re": "\"user\":\"(.*?)\",",
"from": "content"
},
{
"name": "token",
"re": "\"token\":\"(.*?)\",",
"from": "content"
},
{
"name": "access_token",
"re": "\"access_token\":\"(.*?)\"",
"from": "content"
},
{
"name": "appid",
"re": "\"appid\":(\\d+)",
"from": "content"
},
{
"name": "id",
"re": "\"id\":(\\d+)",
"from": "content"
}
]
}
},
{
"comment": "签到",
"request": {
"method": "GET",
"url": "https://ai1foo.com/api/v1/user/signIn",
"headers": [
{
"name": "Host",
"value": "ai1foo.com"
},
{
"name": "Connection",
"value": "keep-alive"
},
{
"name": "sec-ch-ua",
"value": "\"Chromium\";v=\"122\", \"Not(A:Brand\";v=\"24\", \"Google Chrome\";v=\"122\""
},
{
"name": "sec-ch-ua-mobile",
"value": "?0"
},
{
"name": "access-token",
"value": "{{access_token}}"
},
{
"name": "app-name",
"value": "bianjie"
},
{
"name": "Content-Type",
"value": "application/x-www-form-urlencoded"
},
{
"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": "uid",
"value": "{{id}}"
},
{
"name": "app",
"value": "{{appid}}"
},
{
"name": "token",
"value": "{{token}}"
},
{
"name": "sec-ch-ua-platform",
"value": "\"Windows\""
},
{
"name": "Accept",
"value": "*/*"
},
{
"name": "Sec-Fetch-Site",
"value": "same-origin"
},
{
"name": "Sec-Fetch-Mode",
"value": "cors"
},
{
"name": "Sec-Fetch-Dest",
"value": "empty"
},
{
"name": "Referer",
"value": "https://ai1foo.com/"
},
{
"name": "Accept-Encoding",
"value": "gzip, deflate, br"
},
{
"name": "Accept-Language",
"value": "zh-CN,zh;q=0.9"
}
],
"cookies": [],
"data": "",
"mimeType": "application/x-www-form-urlencoded"
},
"rule": {
"success_asserts": [
{
"re": "200",
"from": "status"
},
{
"re": "今天已经签到过了",
"from": "content"
}
],
"failed_asserts": [
{
"re": "请登录账户后重新尝试!",
"from": "content"
}
],
"extract_variables": [
{
"name": "msg",
"re": "\"msg\":\"(.*?)\",",
"from": "content"
},
{
"name": "lxqd",
"re": "\"continue_days\":(\\d+)",
"from": "content"
},
{
"name": "jl",
"re": "\"reward\":\"(.*?)\"",
"from": "content"
}
]
}
},
{
"comment": "Unicode转换",
"request": {
"method": "POST",
"url": "api://util/unicode",
"headers": [],
"cookies": [],
"data": "html_unescape=false&content=用户名:{{yhm}},签到状态:{{msg}},已连续签到{{lxqd}}天,奖励:{{jl}}。"
},
"rule": {
"success_asserts": [
{
"re": "200",
"from": "status"
},
{
"re": "\"状态\": \"200\"",
"from": "content"
}
],
"failed_asserts": [],
"extract_variables": [
{
"name": "__log__",
"re": "\"转换后\": \"(.*)\"",
"from": "content"
}
]
}
}
]