mirror of
https://github.com/qd-today/templates.git
synced 2026-11-23 18:24:36 +00:00
Co-authored-by: Slave-LiLi <Slave-LiLi@users.noreply.github.com>
1158 lines
64 KiB
JSON
1158 lines
64 KiB
JSON
[
|
||
{
|
||
"comment": "严格二选一:填写账号密码且 Cookie 留空,或只填 Cookie;每次清空全部内部身份变量及旧业务日志",
|
||
"request": {
|
||
"method": "POST",
|
||
"url": "api://util/string/replace",
|
||
"httpVersion": "HTTP/1.1",
|
||
"headers": [
|
||
{
|
||
"name": "Content-Type",
|
||
"value": "application/x-www-form-urlencoded",
|
||
"checked": true
|
||
}
|
||
],
|
||
"cookies": [],
|
||
"queryString": [],
|
||
"headersSize": -1,
|
||
"bodySize": -1,
|
||
"data": "s={{ ('mode=' ~ ('cookie' if (cookie|trim) and not username and not password else 'password' if (username|trim) and password and not (cookie|trim) else 'invalid') ~ ';reset=')|urlencode }}&p=%5E%24&t=&r=text",
|
||
"mimeType": "text/plain"
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "\\Amode=(cookie|password);reset=\\Z",
|
||
"from": "content"
|
||
}
|
||
],
|
||
"failed_asserts": [
|
||
{
|
||
"re": "^(?!200$).*$",
|
||
"from": "status"
|
||
}
|
||
],
|
||
"extract_variables": [
|
||
{
|
||
"name": "xjb_auth_mode",
|
||
"re": "\\Amode=(cookie|password);reset=\\Z",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "xjb_auth_token",
|
||
"re": "reset=()\\Z",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "xjb_cookie_token",
|
||
"re": "reset=()\\Z",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "xjb_login_body_token",
|
||
"re": "reset=()\\Z",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "xjb_login_header_token",
|
||
"re": "reset=()\\Z",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "__log__",
|
||
"re": "reset=()\\Z",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "xjb_after_credit",
|
||
"re": "reset=()\\Z",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "xjb_after_date",
|
||
"re": "reset=()\\Z",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "xjb_after_points",
|
||
"re": "reset=()\\Z",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "xjb_before_credit",
|
||
"re": "reset=()\\Z",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "xjb_before_date",
|
||
"re": "reset=()\\Z",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "xjb_before_points",
|
||
"re": "reset=()\\Z",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "xjb_final_level",
|
||
"re": "reset=()\\Z",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "xjb_final_level_name_raw",
|
||
"re": "reset=()\\Z",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "xjb_final_level_points",
|
||
"re": "reset=()\\Z",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "xjb_final_points",
|
||
"re": "reset=()\\Z",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "xjb_points_before",
|
||
"re": "reset=()\\Z",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "xjb_raw",
|
||
"re": "reset=()\\Z",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "xjb_state_before",
|
||
"re": "reset=()\\Z",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "xjb_submit_credit",
|
||
"re": "reset=()\\Z",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "xjb_submit_date",
|
||
"re": "reset=()\\Z",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "xjb_submit_points",
|
||
"re": "reset=()\\Z",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "xjb_submit_root_credit",
|
||
"re": "reset=()\\Z",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "xjb_submit_root_date",
|
||
"re": "reset=()\\Z",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "xjb_today",
|
||
"re": "reset=()\\Z",
|
||
"from": "content"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"comment": "Cookie 模式:不会发起密码登录",
|
||
"request": {
|
||
"method": "POST",
|
||
"url": "{% if xjb_auth_mode == 'cookie' %}",
|
||
"httpVersion": "HTTP/1.1",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"queryString": [],
|
||
"headersSize": -1,
|
||
"bodySize": -1,
|
||
"data": "",
|
||
"mimeType": "text/plain"
|
||
},
|
||
"rule": {
|
||
"success_asserts": [],
|
||
"failed_asserts": [],
|
||
"extract_variables": []
|
||
}
|
||
},
|
||
{
|
||
"comment": "只从完整 Cookie 头提取唯一 b2_token;缺失、空值、重复、原始 token 或异常格式均停止",
|
||
"request": {
|
||
"method": "POST",
|
||
"url": "api://util/string/replace",
|
||
"httpVersion": "HTTP/1.1",
|
||
"headers": [
|
||
{
|
||
"name": "Content-Type",
|
||
"value": "application/x-www-form-urlencoded",
|
||
"checked": true
|
||
}
|
||
],
|
||
"cookies": [],
|
||
"queryString": [],
|
||
"headersSize": -1,
|
||
"bodySize": -1,
|
||
"data": "{%set h=\"\\\\A[ \\\\t]{0,64}(?:(?i:Cookie):[ \\\\t]{0,64})?(?:(?!b2_token=)[!#$%&'*+\\\\-.^_`|~0-9A-Za-z]{1,128}=[^\\\\x00-\\\\x20;\\\\x7f]{0,8192}[ \\\\t]{0,64};[ \\\\t]{0,64})*b2_token=([A-Za-z0-9_-]{1,4096}\\\\.[A-Za-z0-9_-]{1,8192}\\\\.[A-Za-z0-9_-]{1,4096})(?:[ \\\\t]{0,64};[ \\\\t]{0,64}(?!b2_token=)[!#$%&'*+\\\\-.^_`|~0-9A-Za-z]{1,128}=[^\\\\x00-\\\\x20;\\\\x7f]{0,8192})*[ \\\\t]{0,64};?[ \\\\t]{0,64}\\\\Z\"%}s={{ (((cookie|trim)|regex_replace(h, \"\\\\1\")) if ((cookie|trim)|regex_search(h)) else 'INVALID_COOKIE')|urlencode }}&p=%5E%24&t=&r=text",
|
||
"mimeType": "text/plain"
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "\\A[A-Za-z0-9_-]{1,4096}\\.[A-Za-z0-9_-]{1,8192}\\.[A-Za-z0-9_-]{1,4096}\\Z",
|
||
"from": "content"
|
||
}
|
||
],
|
||
"failed_asserts": [
|
||
{
|
||
"re": "^(?!200$).*$",
|
||
"from": "status"
|
||
}
|
||
],
|
||
"extract_variables": [
|
||
{
|
||
"name": "xjb_cookie_token",
|
||
"re": "\\A[A-Za-z0-9_-]{1,4096}\\.[A-Za-z0-9_-]{1,8192}\\.[A-Za-z0-9_-]{1,4096}\\Z",
|
||
"from": "content"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"comment": "账号密码模式",
|
||
"request": {
|
||
"method": "POST",
|
||
"url": "{% else %}",
|
||
"httpVersion": "HTTP/1.1",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"queryString": [],
|
||
"headersSize": -1,
|
||
"bodySize": -1,
|
||
"data": "",
|
||
"mimeType": "text/plain"
|
||
},
|
||
"rule": {
|
||
"success_asserts": [],
|
||
"failed_asserts": [],
|
||
"extract_variables": []
|
||
}
|
||
},
|
||
{
|
||
"comment": "账号模式:每次向本站登录一次,仅接受当次有效 token;验证码或登录错误立即停止",
|
||
"request": {
|
||
"method": "POST",
|
||
"url": "https://xuejieba18.com/wp-json/jwt-auth/v1/token",
|
||
"httpVersion": "HTTP/1.1",
|
||
"headers": [
|
||
{
|
||
"name": "Content-Type",
|
||
"value": "application/x-www-form-urlencoded",
|
||
"checked": true
|
||
},
|
||
{
|
||
"name": "User-Agent",
|
||
"value": "Mozilla/5.0",
|
||
"checked": true
|
||
},
|
||
{
|
||
"name": "Referer",
|
||
"value": "https://xuejieba18.com/task",
|
||
"checked": true
|
||
},
|
||
{
|
||
"name": "Accept",
|
||
"value": "application/json, text/plain, */*",
|
||
"checked": true
|
||
}
|
||
],
|
||
"cookies": [],
|
||
"queryString": [],
|
||
"headersSize": -1,
|
||
"bodySize": -1,
|
||
"data": "username={{username|urlencode}}&password={{password|urlencode}}",
|
||
"mimeType": "text/plain"
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "{%set w='[ \\\\t\\\\r\\\\n]{0,64}'%}{%set k%}\"[^\"\\\\\\x00-\\x1f]*\"{%endset%}{%set a%}(?:\"(?:[^\"\\\\\\x00-\\x1f]|\\\\(?:[\"\\\\/bfnrt]|u[0-9a-fA-F]{4}))*\"|-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?|true|false|null){%endset%}{%macro v(p)%}{{'(?:'~a~'|\\\\{'~w~'(?:'~w~'|(?:'~k~w~':'~w~p~w~'(?:,'~w~'(?!\\\\})|(?=\\\\})))+)\\\\}|\\\\['~w~'(?:'~w~'|(?:'~p~w~'(?:,'~w~'(?!\\\\])|(?=\\\\])))+)\\\\])'}}{%endmacro%}{%set b=v(a)%}{%set c=v(b)%}{%macro o(x,y,z)%}{{'\\\\{'~w~'(?:(?!'~x~w~':)'~k~w~':'~w~z~w~','~w~')*'~x~w~':'~w~y~'(?:'~w~','~w~'(?!'~x~w~':)'~k~w~':'~w~z~')*'~w~'\\\\}'}}{%endmacro%}{{'\\\\A'~w~o('\"token\"','\"([A-Za-z0-9_-]{1,4096}\\\\.[A-Za-z0-9_-]{1,8192}\\\\.[A-Za-z0-9_-]{1,4096})\"',c)~w~'\\\\Z'}}",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"re": "\\A(?:(?!(?i:Set-Cookie):[ \\t]{0,64}b2_token=)[^\\r\\n]+\\n)*(?i:Set-Cookie):[ \\t]{0,64}b2_token=([A-Za-z0-9_-]{1,4096}\\.[A-Za-z0-9_-]{1,8192}\\.[A-Za-z0-9_-]{1,4096})(?![^\\r\\n]*b2_token=)(?:;[^\\r\\n]*)?[ \\t]{0,64}(?:\n(?!(?i:Set-Cookie):[ \\t]{0,64}b2_token=)[^\\r\\n]+)*\\Z",
|
||
"from": "header"
|
||
}
|
||
],
|
||
"failed_asserts": [
|
||
{
|
||
"re": "^(?!200$).*$",
|
||
"from": "status"
|
||
},
|
||
{
|
||
"re": "{%set w='[ \\\\t\\\\r\\\\n]{0,64}'%}{%set k%}\"[^\"\\\\\\x00-\\x1f]*\"{%endset%}{%set a%}(?:\"(?:[^\"\\\\\\x00-\\x1f]|\\\\(?:[\"\\\\/bfnrt]|u[0-9a-fA-F]{4}))*\"|-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?|true|false|null){%endset%}{%macro v(p)%}{{'(?:'~a~'|\\\\{'~w~'(?:'~w~'|(?:'~k~w~':'~w~p~w~'(?:,'~w~'(?!\\\\})|(?=\\\\})))+)\\\\}|\\\\['~w~'(?:'~w~'|(?:'~p~w~'(?:,'~w~'(?!\\\\])|(?=\\\\])))+)\\\\])'}}{%endmacro%}{%set b=v(a)%}{%set c=v(b)%}{%set d=v(c)%}{{'\\\\A(?!'~w~d~w~'\\\\Z)[\\\\s\\\\S]*\\\\Z'}}",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"re": "\"(?:code|error)\"[ \\t\\r\\n]{0,64}:",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"re": "{%set w='[ \\\\t\\\\r\\\\n]{0,64}'%}{%set k%}\"[^\"\\\\\\x00-\\x1f]*\"{%endset%}{%set a%}(?:\"(?:[^\"\\\\\\x00-\\x1f]|\\\\(?:[\"\\\\/bfnrt]|u[0-9a-fA-F]{4}))*\"|-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?|true|false|null){%endset%}{%macro v(p)%}{{'(?:'~a~'|\\\\{'~w~'(?:'~w~'|(?:'~k~w~':'~w~p~w~'(?:,'~w~'(?!\\\\})|(?=\\\\})))+)\\\\}|\\\\['~w~'(?:'~w~'|(?:'~p~w~'(?:,'~w~'(?!\\\\])|(?=\\\\])))+)\\\\])'}}{%endmacro%}{%set b=v(a)%}{%set c=v(b)%}{%macro o(x,y,z)%}{{'\\\\{'~w~'(?:(?!'~x~w~':)'~k~w~':'~w~z~w~','~w~')*'~x~w~':'~w~y~'(?:'~w~','~w~'(?!'~x~w~':)'~k~w~':'~w~z~')*'~w~'\\\\}'}}{%endmacro%}{{'\\\\A'~w~o('\"code\"',c,c)~w~'\\\\Z'}}",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"re": "{%set w='[ \\\\t\\\\r\\\\n]{0,64}'%}{%set k%}\"[^\"\\\\\\x00-\\x1f]*\"{%endset%}{%set a%}(?:\"(?:[^\"\\\\\\x00-\\x1f]|\\\\(?:[\"\\\\/bfnrt]|u[0-9a-fA-F]{4}))*\"|-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?|true|false|null){%endset%}{%macro v(p)%}{{'(?:'~a~'|\\\\{'~w~'(?:'~w~'|(?:'~k~w~':'~w~p~w~'(?:,'~w~'(?!\\\\})|(?=\\\\})))+)\\\\}|\\\\['~w~'(?:'~w~'|(?:'~p~w~'(?:,'~w~'(?!\\\\])|(?=\\\\])))+)\\\\])'}}{%endmacro%}{%set b=v(a)%}{%set c=v(b)%}{%macro o(x,y,z)%}{{'\\\\{'~w~'(?:(?!'~x~w~':)'~k~w~':'~w~z~w~','~w~')*'~x~w~':'~w~y~'(?:'~w~','~w~'(?!'~x~w~':)'~k~w~':'~w~z~')*'~w~'\\\\}'}}{%endmacro%}{{'\\\\A'~w~o('\"error\"',c,c)~w~'\\\\Z'}}",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"re": "\"success\"[ \\t\\r\\n]{0,64}:[ \\t\\r\\n]{0,64}false\\b",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"re": "{%set w='[ \\\\t\\\\r\\\\n]{0,64}'%}{%set k%}\"[^\"\\\\\\x00-\\x1f]*\"{%endset%}{%set a%}(?:\"(?:[^\"\\\\\\x00-\\x1f]|\\\\(?:[\"\\\\/bfnrt]|u[0-9a-fA-F]{4}))*\"|-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?|true|false|null){%endset%}{%macro v(p)%}{{'(?:'~a~'|\\\\{'~w~'(?:'~w~'|(?:'~k~w~':'~w~p~w~'(?:,'~w~'(?!\\\\})|(?=\\\\})))+)\\\\}|\\\\['~w~'(?:'~w~'|(?:'~p~w~'(?:,'~w~'(?!\\\\])|(?=\\\\])))+)\\\\])'}}{%endmacro%}{%set b=v(a)%}{%set c=v(b)%}{%macro o(x,y,z)%}{{'\\\\{'~w~'(?:(?!'~x~w~':)'~k~w~':'~w~z~w~','~w~')*'~x~w~':'~w~y~'(?:'~w~','~w~'(?!'~x~w~':)'~k~w~':'~w~z~')*'~w~'\\\\}'}}{%endmacro%}{{'(?s)\\\\A(?=.*\"token\"'~w~':)(?!\\\\A'~w~o('\"token\"','\"([A-Za-z0-9_-]{1,4096}\\\\.[A-Za-z0-9_-]{1,8192}\\\\.[A-Za-z0-9_-]{1,4096})\"',c)~w~'\\\\Z).*\\\\Z'}}",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"re": "(?s)\\A(?=[\\s\\S]*(?m:^)(?i:Set-Cookie):[ \\t]{0,64}b2_token=)(?!\\A(?:(?!(?i:Set-Cookie):[ \\t]{0,64}b2_token=)[^\\r\\n]+\\n)*(?i:Set-Cookie):[ \\t]{0,64}b2_token=([A-Za-z0-9_-]{1,4096}\\.[A-Za-z0-9_-]{1,8192}\\.[A-Za-z0-9_-]{1,4096})(?![^\\r\\n]*b2_token=)(?:;[^\\r\\n]*)?[ \\t]{0,64}(?:\n(?!(?i:Set-Cookie):[ \\t]{0,64}b2_token=)[^\\r\\n]+)*\\Z)[\\s\\S]*\\Z",
|
||
"from": "header"
|
||
}
|
||
],
|
||
"extract_variables": [
|
||
{
|
||
"name": "xjb_login_body_token",
|
||
"re": "\\A[ \\t\\r\\n]{0,64}\\{[ \\t\\r\\n]{0,64}(?:(?!\"token\"[ \\t\\r\\n]{0,64}:)\"[^\"\\\\\\x00-\\x1f]*\"[ \\t\\r\\n]{0,64}:[ \\t\\r\\n]{0,64}(?:(?:\"(?:[^\"\\\\\\x00-\\x1f]|\\\\(?:[\"\\\\/bfnrt]|u[0-9a-fA-F]{4}))*\"|-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?|true|false|null)|\\{[ \\t\\r\\n]{0,64}(?:[ \\t\\r\\n]{0,64}|(?:\"[^\"\\\\\\x00-\\x1f]*\"[ \\t\\r\\n]{0,64}:[ \\t\\r\\n]{0,64}(?:(?:\"(?:[^\"\\\\\\x00-\\x1f]|\\\\(?:[\"\\\\/bfnrt]|u[0-9a-fA-F]{4}))*\"|-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?|true|false|null)|\\{[ \\t\\r\\n]{0,64}(?:[ \\t\\r\\n]{0,64}|(?:\"[^\"\\\\\\x00-\\x1f]*\"[ \\t\\r\\n]{0,64}:[ \\t\\r\\n]{0,64}(?:\"(?:[^\"\\\\\\x00-\\x1f]|\\\\(?:[\"\\\\/bfnrt]|u[0-9a-fA-F]{4}))*\"|-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?|true|false|null)[ \\t\\r\\n]{0,64}(?:,[ \\t\\r\\n]{0,64}(?!\\})|(?=\\})))+)\\}|\\[[ \\t\\r\\n]{0,64}(?:[ \\t\\r\\n]{0,64}|(?:(?:\"(?:[^\"\\\\\\x00-\\x1f]|\\\\(?:[\"\\\\/bfnrt]|u[0-9a-fA-F]{4}))*\"|-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?|true|false|null)[ \\t\\r\\n]{0,64}(?:,[ \\t\\r\\n]{0,64}(?!\\])|(?=\\])))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\t\\r\\n]{0,64}|(?:(?:(?:\"(?:[^\"\\\\\\x00-\\x1f]|\\\\(?:[\"\\\\/bfnrt]|u[0-9a-fA-F]{4}))*\"|-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?|true|false|null)|\\{[ \\t\\r\\n]{0,64}(?:[ \\t\\r\\n]{0,64}|(?:\"[^\"\\\\\\x00-\\x1f]*\"[ \\t\\r\\n]{0,64}:[ \\t\\r\\n]{0,64}(?:\"(?:[^\"\\\\\\x00-\\x1f]|\\\\(?:[\"\\\\/bfnrt]|u[0-9a-fA-F]{4}))*\"|-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?|true|false|null)[ \\t\\r\\n]{0,64}(?:,[ \\t\\r\\n]{0,64}(?!\\})|(?=\\})))+)\\}|\\[[ \\t\\r\\n]{0,64}(?:[ \\t\\r\\n]{0,64}|(?:(?:\"(?:[^\"\\\\\\x00-\\x1f]|\\\\(?:[\"\\\\/bfnrt]|u[0-9a-fA-F]{4}))*\"|-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?|true|false|null)[ \\t\\r\\n]{0,64}(?:,[ \\t\\r\\n]{0,64}(?!\\])|(?=\\])))+)\\])[ \\t\\r\\n]{0,64}(?:,[ \\t\\r\\n]{0,64}(?!\\])|(?=\\])))+)\\]))*[ \\t\\r\\n]{0,64}\\}[ \\t\\r\\n]{0,64}\\Z",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "xjb_login_header_token",
|
||
"re": "\\A(?:(?!(?i:Set-Cookie):[ \\t]{0,64}b2_token=)[^\\r\\n]+\\n)*(?i:Set-Cookie):[ \\t]{0,64}b2_token=([A-Za-z0-9_-]{1,4096}\\.[A-Za-z0-9_-]{1,8192}\\.[A-Za-z0-9_-]{1,4096})(?![^\\r\\n]*b2_token=)(?:;[^\\r\\n]*)?[ \\t]{0,64}(?:\n(?!(?i:Set-Cookie):[ \\t]{0,64}b2_token=)[^\\r\\n]+)*\\Z",
|
||
"from": "header"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"comment": "结束身份方式分支",
|
||
"request": {
|
||
"method": "POST",
|
||
"url": "{% endif %}",
|
||
"httpVersion": "HTTP/1.1",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"queryString": [],
|
||
"headersSize": -1,
|
||
"bodySize": -1,
|
||
"data": "",
|
||
"mimeType": "text/plain"
|
||
},
|
||
"rule": {
|
||
"success_asserts": [],
|
||
"failed_asserts": [],
|
||
"extract_variables": []
|
||
}
|
||
},
|
||
{
|
||
"comment": "只使用本次身份结果;登录 header/body token 同时存在但不一致则停止,不自动切换认证方式",
|
||
"request": {
|
||
"method": "POST",
|
||
"url": "api://util/string/replace",
|
||
"httpVersion": "HTTP/1.1",
|
||
"headers": [
|
||
{
|
||
"name": "Content-Type",
|
||
"value": "application/x-www-form-urlencoded",
|
||
"checked": true
|
||
}
|
||
],
|
||
"cookies": [],
|
||
"queryString": [],
|
||
"headersSize": -1,
|
||
"bodySize": -1,
|
||
"data": "s={{ ((xjb_cookie_token if xjb_auth_mode == 'cookie' else (xjb_login_header_token or xjb_login_body_token)) if ((xjb_auth_mode == 'cookie' and xjb_cookie_token) or (xjb_auth_mode == 'password' and (xjb_login_header_token or xjb_login_body_token) and not (xjb_login_header_token and xjb_login_body_token and xjb_login_header_token != xjb_login_body_token))) else 'INVALID_AUTH')|urlencode }}&p=%5E%24&t=&r=text",
|
||
"mimeType": "text/plain"
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "\\A[A-Za-z0-9_-]{1,4096}\\.[A-Za-z0-9_-]{1,8192}\\.[A-Za-z0-9_-]{1,4096}\\Z",
|
||
"from": "content"
|
||
}
|
||
],
|
||
"failed_asserts": [
|
||
{
|
||
"re": "^(?!200$).*$",
|
||
"from": "status"
|
||
}
|
||
],
|
||
"extract_variables": [
|
||
{
|
||
"name": "xjb_auth_token",
|
||
"re": "\\A[A-Za-z0-9_-]{1,4096}\\.[A-Za-z0-9_-]{1,8192}\\.[A-Za-z0-9_-]{1,4096}\\Z",
|
||
"from": "content"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"comment": "读取北京时间日期;使用 QD 内置时区转换,与 QD 主机时区无关",
|
||
"request": {
|
||
"method": "POST",
|
||
"url": "api://util/timestamp",
|
||
"httpVersion": "HTTP/1.1",
|
||
"headers": [
|
||
{
|
||
"name": "Content-Type",
|
||
"value": "application/x-www-form-urlencoded",
|
||
"checked": true
|
||
}
|
||
],
|
||
"cookies": [],
|
||
"queryString": [],
|
||
"headersSize": -1,
|
||
"bodySize": -1,
|
||
"data": "form=%25Y-%25m-%25d",
|
||
"mimeType": "text/plain"
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "{%set w='[ \\\\t\\\\r\\\\n]{0,64}'%}{%set k%}\"[^\"\\\\\\x00-\\x1f]*\"{%endset%}{%set a%}(?:\"(?:[^\"\\\\\\x00-\\x1f]|\\\\(?:[\"\\\\/bfnrt]|u[0-9a-fA-F]{4}))*\"|-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?|true|false|null){%endset%}{%macro o(x,y,z)%}{{'\\\\{'~w~'(?:(?!'~x~w~':)'~k~w~':'~w~z~w~','~w~')*'~x~w~':'~w~y~'(?:'~w~','~w~'(?!'~x~w~':)'~k~w~':'~w~z~')*'~w~'\\\\}'}}{%endmacro%}{{'(?s)\\\\A(?=\\\\A'~w~o('\"\\\\u5317\\\\u4eac\\\\u65f6\\\\u95f4\"','\"([0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01]))\"',a)~w~'\\\\Z)(?=\\\\A'~w~o('\"\\\\u72b6\\\\u6001\"','\"200\"',a)~w~'\\\\Z).*\\\\Z'}}",
|
||
"from": "content"
|
||
}
|
||
],
|
||
"failed_asserts": [
|
||
{
|
||
"re": "^(?!200$).*$",
|
||
"from": "status"
|
||
}
|
||
],
|
||
"extract_variables": [
|
||
{
|
||
"name": "xjb_today",
|
||
"re": "\\A[ \\t\\r\\n]{0,64}\\{[ \\t\\r\\n]{0,64}(?:(?!\"\\u5317\\u4eac\\u65f6\\u95f4\"[ \\t\\r\\n]{0,64}:)\"[^\"\\\\\\x00-\\x1f]*\"[ \\t\\r\\n]{0,64}:[ \\t\\r\\n]{0,64}(?:\"(?:[^\"\\\\\\x00-\\x1f]|\\\\(?:[\"\\\\/bfnrt]|u[0-9a-fA-F]{4}))*\"|-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?|true|false|null)[ \\t\\r\\n]{0,64},[ \\t\\r\\n]{0,64})*\"\\u5317\\u4eac\\u65f6\\u95f4\"[ \\t\\r\\n]{0,64}:[ \\t\\r\\n]{0,64}\"([0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01]))\"(?:[ \\t\\r\\n]{0,64},[ \\t\\r\\n]{0,64}(?!\"\\u5317\\u4eac\\u65f6\\u95f4\"[ \\t\\r\\n]{0,64}:)\"[^\"\\\\\\x00-\\x1f]*\"[ \\t\\r\\n]{0,64}:[ \\t\\r\\n]{0,64}(?:\"(?:[^\"\\\\\\x00-\\x1f]|\\\\(?:[\"\\\\/bfnrt]|u[0-9a-fA-F]{4}))*\"|-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?|true|false|null))*[ \\t\\r\\n]{0,64}\\}[ \\t\\r\\n]{0,64}\\Z",
|
||
"from": "content"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"comment": "刷新每日签到;getUserMission 必须先于 getTaskData,不依赖浏览器打开网站",
|
||
"request": {
|
||
"method": "POST",
|
||
"url": "https://xuejieba18.com/wp-json/b2/v1/getUserMission",
|
||
"httpVersion": "HTTP/1.1",
|
||
"headers": [
|
||
{
|
||
"name": "Authorization",
|
||
"value": "Bearer {{xjb_auth_token}}",
|
||
"checked": true
|
||
},
|
||
{
|
||
"name": "User-Agent",
|
||
"value": "Mozilla/5.0",
|
||
"checked": true
|
||
},
|
||
{
|
||
"name": "Referer",
|
||
"value": "https://xuejieba18.com/task",
|
||
"checked": true
|
||
},
|
||
{
|
||
"name": "Accept",
|
||
"value": "application/json, text/plain, */*",
|
||
"checked": true
|
||
},
|
||
{
|
||
"name": "Content-Type",
|
||
"value": "application/x-www-form-urlencoded",
|
||
"checked": true
|
||
}
|
||
],
|
||
"cookies": [],
|
||
"queryString": [],
|
||
"headersSize": -1,
|
||
"bodySize": -1,
|
||
"data": "count=10&paged=1",
|
||
"mimeType": "text/plain"
|
||
},
|
||
"rule": {
|
||
"success_asserts": [],
|
||
"failed_asserts": [
|
||
{
|
||
"re": "^(?!200$).*$",
|
||
"from": "status"
|
||
}
|
||
],
|
||
"extract_variables": [
|
||
{
|
||
"name": "xjb_raw",
|
||
"re": "(?s)\\A(.*)\\Z",
|
||
"from": "content"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"comment": "严格读取刷新后的签到记录、奖励与账户余额;缺失、重复或业务错误立即停止",
|
||
"request": {
|
||
"method": "POST",
|
||
"url": "api://util/string/replace",
|
||
"httpVersion": "HTTP/1.1",
|
||
"headers": [
|
||
{
|
||
"name": "Content-Type",
|
||
"value": "application/x-www-form-urlencoded",
|
||
"checked": true
|
||
}
|
||
],
|
||
"cookies": [],
|
||
"queryString": [],
|
||
"headersSize": -1,
|
||
"bodySize": -1,
|
||
"data": "{%set w='[ \\\\t\\\\r\\\\n]{0,64}'%}{%set k%}\"[^\"\\\\\\x00-\\x1f]*\"{%endset%}{%set a%}(?:\"(?:[^\"\\\\\\x00-\\x1f]|\\\\(?:[\"\\\\/bfnrt]|u[0-9a-fA-F]{4}))*\"|-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?|true|false|null){%endset%}{%macro v(p)%}{{'(?:'~a~'|\\\\{'~w~'(?:'~w~'|(?:'~k~w~':'~w~p~w~'(?:,'~w~'(?!\\\\})|(?=\\\\})))+)\\\\}|\\\\['~w~'(?:'~w~'|(?:'~p~w~'(?:,'~w~'(?!\\\\])|(?=\\\\])))+)\\\\])'}}{%endmacro%}{%set b=v(a)%}{%set c=v(b)%}{%set d=v(c)%}{%set e=v(d)%}{%set f=v(e)%}{%set g=v(f)%}{%macro o(x,y,z)%}{{'\\\\{'~w~'(?:(?!'~x~w~':)'~k~w~':'~w~z~w~','~w~')*'~x~w~':'~w~y~'(?:'~w~','~w~'(?!'~x~w~':)'~k~w~':'~w~z~')*'~w~'\\\\}'}}{%endmacro%}{%set p0='\\\\A'~w~o('\"mission\"',o('\"date\"','\"((?:[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01]) (?:[01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9])?)\"',b),g)~w~'\\\\Z'%}{%set p1='\\\\A'~w~o('\"mission\"',o('\"credit\"','(?:\"((?:0|[1-9][0-9]*))\"|((?:0|[1-9][0-9]*)))',b),g)~w~'\\\\Z'%}{%set p2='\\\\A'~w~o('\"mission\"',o('\"my_credit\"','\"((?:0|[1-9][0-9]*))\"',b),g)~w~'\\\\Z'%}s={{ ((\"xjb_before_date=\" ~ (xjb_raw|regex_replace(p0,\"\\\\1\")) ~ \";\" ~ \"xjb_before_credit=\" ~ (xjb_raw|regex_replace(p1,\"\\\\1\\\\2\")) ~ \";\" ~ \"xjb_before_points=\" ~ (xjb_raw|regex_replace(p2,\"\\\\1\")) ~ \";\") if (not (xjb_raw|regex_search(\"\\\"(?:code|error)\\\"[ \\\\t\\\\r\\\\n]{0,64}:|\\\"success\\\"[ \\\\t\\\\r\\\\n]{0,64}:[ \\\\t\\\\r\\\\n]{0,64}false\\\\b\")) and (xjb_raw|regex_search(p0)) and (xjb_raw|regex_search(p1)) and (xjb_raw|regex_search(p2))) else 'INVALID_BUSINESS_RESPONSE')|urlencode }}&p=%5E%24&t=&r=text",
|
||
"mimeType": "text/plain"
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "\\Axjb_before_date=(?:[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01]) (?:[01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9])?;xjb_before_credit=(?:0|[1-9][0-9]*);xjb_before_points=(?:0|[1-9][0-9]*);\\Z",
|
||
"from": "content"
|
||
}
|
||
],
|
||
"failed_asserts": [
|
||
{
|
||
"re": "^(?!200$).*$",
|
||
"from": "status"
|
||
}
|
||
],
|
||
"extract_variables": [
|
||
{
|
||
"name": "xjb_before_date",
|
||
"re": "(?:\\A|;)xjb_before_date=((?:[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01]) (?:[01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9])?);",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "xjb_before_credit",
|
||
"re": "(?:\\A|;)xjb_before_credit=((?:0|[1-9][0-9]*));",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "xjb_before_points",
|
||
"re": "(?:\\A|;)xjb_before_points=((?:0|[1-9][0-9]*));",
|
||
"from": "content"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"comment": "读取提交前余额,供签到到账核对",
|
||
"request": {
|
||
"method": "POST",
|
||
"url": "https://xuejieba18.com/wp-json/b2/v1/getUserInfo",
|
||
"httpVersion": "HTTP/1.1",
|
||
"headers": [
|
||
{
|
||
"name": "Authorization",
|
||
"value": "Bearer {{xjb_auth_token}}",
|
||
"checked": true
|
||
},
|
||
{
|
||
"name": "User-Agent",
|
||
"value": "Mozilla/5.0",
|
||
"checked": true
|
||
},
|
||
{
|
||
"name": "Referer",
|
||
"value": "https://xuejieba18.com/task",
|
||
"checked": true
|
||
},
|
||
{
|
||
"name": "Accept",
|
||
"value": "application/json, text/plain, */*",
|
||
"checked": true
|
||
}
|
||
],
|
||
"cookies": [],
|
||
"queryString": [],
|
||
"headersSize": -1,
|
||
"bodySize": -1,
|
||
"data": "",
|
||
"mimeType": "text/plain"
|
||
},
|
||
"rule": {
|
||
"success_asserts": [],
|
||
"failed_asserts": [
|
||
{
|
||
"re": "^(?!200$).*$",
|
||
"from": "status"
|
||
}
|
||
],
|
||
"extract_variables": [
|
||
{
|
||
"name": "xjb_raw",
|
||
"re": "(?s)\\A(.*)\\Z",
|
||
"from": "content"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"comment": "验证提交前账户余额;不把缺失值当作零",
|
||
"request": {
|
||
"method": "POST",
|
||
"url": "api://util/string/replace",
|
||
"httpVersion": "HTTP/1.1",
|
||
"headers": [
|
||
{
|
||
"name": "Content-Type",
|
||
"value": "application/x-www-form-urlencoded",
|
||
"checked": true
|
||
}
|
||
],
|
||
"cookies": [],
|
||
"queryString": [],
|
||
"headersSize": -1,
|
||
"bodySize": -1,
|
||
"data": "{%set w='[ \\\\t\\\\r\\\\n]{0,64}'%}{%set k%}\"[^\"\\\\\\x00-\\x1f]*\"{%endset%}{%set a%}(?:\"(?:[^\"\\\\\\x00-\\x1f]|\\\\(?:[\"\\\\/bfnrt]|u[0-9a-fA-F]{4}))*\"|-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?|true|false|null){%endset%}{%macro v(p)%}{{'(?:'~a~'|\\\\{'~w~'(?:'~w~'|(?:'~k~w~':'~w~p~w~'(?:,'~w~'(?!\\\\})|(?=\\\\})))+)\\\\}|\\\\['~w~'(?:'~w~'|(?:'~p~w~'(?:,'~w~'(?!\\\\])|(?=\\\\])))+)\\\\])'}}{%endmacro%}{%set b=v(a)%}{%set c=v(b)%}{%macro o(x,y,z)%}{{'\\\\{'~w~'(?:(?!'~x~w~':)'~k~w~':'~w~z~w~','~w~')*'~x~w~':'~w~y~'(?:'~w~','~w~'(?!'~x~w~':)'~k~w~':'~w~z~')*'~w~'\\\\}'}}{%endmacro%}{%set p0='\\\\A'~w~o('\"user_data\"',o('\"credit\"','\"((?:0|[1-9][0-9]*))\"',c),a)~w~'\\\\Z'%}s={{ ((\"xjb_points_before=\" ~ (xjb_raw|regex_replace(p0,\"\\\\1\")) ~ \";\") if (not (xjb_raw|regex_search(\"\\\"(?:code|error)\\\"[ \\\\t\\\\r\\\\n]{0,64}:|\\\"success\\\"[ \\\\t\\\\r\\\\n]{0,64}:[ \\\\t\\\\r\\\\n]{0,64}false\\\\b\")) and (xjb_raw|regex_search(p0))) else 'INVALID_BUSINESS_RESPONSE')|urlencode }}&p=%5E%24&t=&r=text",
|
||
"mimeType": "text/plain"
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "\\Axjb_points_before=(?:0|[1-9][0-9]*);\\Z",
|
||
"from": "content"
|
||
}
|
||
],
|
||
"failed_asserts": [
|
||
{
|
||
"re": "^(?!200$).*$",
|
||
"from": "status"
|
||
}
|
||
],
|
||
"extract_variables": [
|
||
{
|
||
"name": "xjb_points_before",
|
||
"re": "(?:\\A|;)xjb_points_before=((?:0|[1-9][0-9]*));",
|
||
"from": "content"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"comment": "读取刷新后的任务状态;只接受 task.task_mission.finish 为数字 0 或 1",
|
||
"request": {
|
||
"method": "POST",
|
||
"url": "https://xuejieba18.com/wp-json/b2/v1/getTaskData",
|
||
"httpVersion": "HTTP/1.1",
|
||
"headers": [
|
||
{
|
||
"name": "Authorization",
|
||
"value": "Bearer {{xjb_auth_token}}",
|
||
"checked": true
|
||
},
|
||
{
|
||
"name": "User-Agent",
|
||
"value": "Mozilla/5.0",
|
||
"checked": true
|
||
},
|
||
{
|
||
"name": "Referer",
|
||
"value": "https://xuejieba18.com/task",
|
||
"checked": true
|
||
},
|
||
{
|
||
"name": "Accept",
|
||
"value": "application/json, text/plain, */*",
|
||
"checked": true
|
||
}
|
||
],
|
||
"cookies": [],
|
||
"queryString": [],
|
||
"headersSize": -1,
|
||
"bodySize": -1,
|
||
"data": "",
|
||
"mimeType": "text/plain"
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "{%set w='[ \\\\t\\\\r\\\\n]{0,64}'%}{%set k%}\"[^\"\\\\\\x00-\\x1f]*\"{%endset%}{%set a%}(?:\"(?:[^\"\\\\\\x00-\\x1f]|\\\\(?:[\"\\\\/bfnrt]|u[0-9a-fA-F]{4}))*\"|-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?|true|false|null){%endset%}{%macro v(p)%}{{'(?:'~a~'|\\\\{'~w~'(?:'~w~'|(?:'~k~w~':'~w~p~w~'(?:,'~w~'(?!\\\\})|(?=\\\\})))+)\\\\}|\\\\['~w~'(?:'~w~'|(?:'~p~w~'(?:,'~w~'(?!\\\\])|(?=\\\\])))+)\\\\])'}}{%endmacro%}{%set b=v(a)%}{%set c=v(b)%}{%macro o(x,y,z)%}{{'\\\\{'~w~'(?:(?!'~x~w~':)'~k~w~':'~w~z~w~','~w~')*'~x~w~':'~w~y~'(?:'~w~','~w~'(?!'~x~w~':)'~k~w~':'~w~z~')*'~w~'\\\\}'}}{%endmacro%}{{'\\\\A'~w~o('\"task\"',o('\"task_mission\"',o('\"finish\"','([01])',a),b),c)~w~'\\\\Z'}}",
|
||
"from": "content"
|
||
}
|
||
],
|
||
"failed_asserts": [
|
||
{
|
||
"re": "^(?!200$).*$",
|
||
"from": "status"
|
||
},
|
||
{
|
||
"re": "\"(?:code|error)\"[ \\t\\r\\n]{0,64}:|\"success\"[ \\t\\r\\n]{0,64}:[ \\t\\r\\n]{0,64}false\\b",
|
||
"from": "content"
|
||
}
|
||
],
|
||
"extract_variables": [
|
||
{
|
||
"name": "xjb_state_before",
|
||
"re": "\\A[ \\t\\r\\n]{0,64}\\{[ \\t\\r\\n]{0,64}(?:(?!\"task\"[ \\t\\r\\n]{0,64}:)\"[^\"\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?[0-9]+)?|true|false|null)|\\{[ \\t\\r\\n]{0,64}(?:[ \\t\\r\\n]{0,64}|(?:\"[^\"\\\\\\x00-\\x1f]*\"[ \\t\\r\\n]{0,64}:[ \\t\\r\\n]{0,64}(?:\"(?:[^\"\\\\\\x00-\\x1f]|\\\\(?:[\"\\\\/bfnrt]|u[0-9a-fA-F]{4}))*\"|-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?|true|false|null)[ \\t\\r\\n]{0,64}(?:,[ \\t\\r\\n]{0,64}(?!\\})|(?=\\})))+)\\}|\\[[ \\t\\r\\n]{0,64}(?:[ \\t\\r\\n]{0,64}|(?:(?:\"(?:[^\"\\\\\\x00-\\x1f]|\\\\(?:[\"\\\\/bfnrt]|u[0-9a-fA-F]{4}))*\"|-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?|true|false|null)[ \\t\\r\\n]{0,64}(?:,[ \\t\\r\\n]{0,64}(?!\\])|(?=\\])))+)\\])[ \\t\\r\\n]{0,64},[ \\t\\r\\n]{0,64})*\"task_mission\"[ \\t\\r\\n]{0,64}:[ \\t\\r\\n]{0,64}\\{[ \\t\\r\\n]{0,64}(?:(?!\"finish\"[ \\t\\r\\n]{0,64}:)\"[^\"\\\\\\x00-\\x1f]*\"[ \\t\\r\\n]{0,64}:[ \\t\\r\\n]{0,64}(?:\"(?:[^\"\\\\\\x00-\\x1f]|\\\\(?:[\"\\\\/bfnrt]|u[0-9a-fA-F]{4}))*\"|-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?|true|false|null)[ \\t\\r\\n]{0,64},[ \\t\\r\\n]{0,64})*\"finish\"[ \\t\\r\\n]{0,64}:[ \\t\\r\\n]{0,64}([01])(?:[ \\t\\r\\n]{0,64},[ \\t\\r\\n]{0,64}(?!\"finish\"[ \\t\\r\\n]{0,64}:)\"[^\"\\\\\\x00-\\x1f]*\"[ \\t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\\t\\r\\n]{0,64}(?:[ \\t\\r\\n]{0,64}|(?:(?:(?:\"(?:[^\"\\\\\\x00-\\x1f]|\\\\(?:[\"\\\\/bfnrt]|u[0-9a-fA-F]{4}))*\"|-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?|true|false|null)|\\{[ \\t\\r\\n]{0,64}(?:[ \\t\\r\\n]{0,64}|(?:\"[^\"\\\\\\x00-\\x1f]*\"[ \\t\\r\\n]{0,64}:[ \\t\\r\\n]{0,64}(?:\"(?:[^\"\\\\\\x00-\\x1f]|\\\\(?:[\"\\\\/bfnrt]|u[0-9a-fA-F]{4}))*\"|-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?|true|false|null)[ \\t\\r\\n]{0,64}(?:,[ \\t\\r\\n]{0,64}(?!\\})|(?=\\})))+)\\}|\\[[ \\t\\r\\n]{0,64}(?:[ \\t\\r\\n]{0,64}|(?:(?:\"(?:[^\"\\\\\\x00-\\x1f]|\\\\(?:[\"\\\\/bfnrt]|u[0-9a-fA-F]{4}))*\"|-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?|true|false|null)[ \\t\\r\\n]{0,64}(?:,[ \\t\\r\\n]{0,64}(?!\\])|(?=\\])))+)\\])[ \\t\\r\\n]{0,64}(?:,[ \\t\\r\\n]{0,64}(?!\\])|(?=\\])))+)\\]))*[ \\t\\r\\n]{0,64}\\}[ \\t\\r\\n]{0,64}\\Z",
|
||
"from": "content"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"comment": "校验任务状态、北京时间签到日期和提交前余额一致;旧日期绝不判为今日已签到",
|
||
"request": {
|
||
"method": "POST",
|
||
"url": "api://util/string/replace",
|
||
"httpVersion": "HTTP/1.1",
|
||
"headers": [
|
||
{
|
||
"name": "Content-Type",
|
||
"value": "application/x-www-form-urlencoded",
|
||
"checked": true
|
||
}
|
||
],
|
||
"cookies": [],
|
||
"queryString": [],
|
||
"headersSize": -1,
|
||
"bodySize": -1,
|
||
"data": "s={{ ('READY' if (xjb_before_points == xjb_points_before and ((xjb_state_before == '0' and xjb_before_date == '' and xjb_before_credit == '0') or (xjb_state_before == '1' and xjb_before_date[:10] == xjb_today and (xjb_before_credit|int) > 0))) else 'INCONSISTENT_CHECKIN_STATE')|urlencode }}&p=%5E%24&t=&r=text",
|
||
"mimeType": "text/plain"
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "\\AREADY\\Z",
|
||
"from": "content"
|
||
}
|
||
],
|
||
"failed_asserts": [
|
||
{
|
||
"re": "^(?!200$).*$",
|
||
"from": "status"
|
||
}
|
||
],
|
||
"extract_variables": []
|
||
}
|
||
},
|
||
{
|
||
"comment": "仅刷新后未签到时提交一次",
|
||
"request": {
|
||
"method": "POST",
|
||
"url": "{% if xjb_state_before == '0' %}",
|
||
"httpVersion": "HTTP/1.1",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"queryString": [],
|
||
"headersSize": -1,
|
||
"bodySize": -1,
|
||
"data": "",
|
||
"mimeType": "text/plain"
|
||
},
|
||
"rule": {
|
||
"success_asserts": [],
|
||
"failed_asserts": [],
|
||
"extract_variables": []
|
||
}
|
||
},
|
||
{
|
||
"comment": "提交签到一次;后续必须验证当日正数奖励和余额增加",
|
||
"request": {
|
||
"method": "POST",
|
||
"url": "https://xuejieba18.com/wp-json/b2/v1/userMission",
|
||
"httpVersion": "HTTP/1.1",
|
||
"headers": [
|
||
{
|
||
"name": "Authorization",
|
||
"value": "Bearer {{xjb_auth_token}}",
|
||
"checked": true
|
||
},
|
||
{
|
||
"name": "User-Agent",
|
||
"value": "Mozilla/5.0",
|
||
"checked": true
|
||
},
|
||
{
|
||
"name": "Referer",
|
||
"value": "https://xuejieba18.com/task",
|
||
"checked": true
|
||
},
|
||
{
|
||
"name": "Accept",
|
||
"value": "application/json, text/plain, */*",
|
||
"checked": true
|
||
}
|
||
],
|
||
"cookies": [],
|
||
"queryString": [],
|
||
"headersSize": -1,
|
||
"bodySize": -1,
|
||
"data": "",
|
||
"mimeType": "text/plain"
|
||
},
|
||
"rule": {
|
||
"success_asserts": [],
|
||
"failed_asserts": [
|
||
{
|
||
"re": "^(?!200$).*$",
|
||
"from": "status"
|
||
}
|
||
],
|
||
"extract_variables": [
|
||
{
|
||
"name": "xjb_raw",
|
||
"re": "(?s)\\A(.*)\\Z",
|
||
"from": "content"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"comment": "验证提交业务响应的当日记录与正数奖励;根字段和 mission 字段都必须有效",
|
||
"request": {
|
||
"method": "POST",
|
||
"url": "api://util/string/replace",
|
||
"httpVersion": "HTTP/1.1",
|
||
"headers": [
|
||
{
|
||
"name": "Content-Type",
|
||
"value": "application/x-www-form-urlencoded",
|
||
"checked": true
|
||
}
|
||
],
|
||
"cookies": [],
|
||
"queryString": [],
|
||
"headersSize": -1,
|
||
"bodySize": -1,
|
||
"data": "{%set w='[ \\\\t\\\\r\\\\n]{0,64}'%}{%set k%}\"[^\"\\\\\\x00-\\x1f]*\"{%endset%}{%set a%}(?:\"(?:[^\"\\\\\\x00-\\x1f]|\\\\(?:[\"\\\\/bfnrt]|u[0-9a-fA-F]{4}))*\"|-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?|true|false|null){%endset%}{%macro v(p)%}{{'(?:'~a~'|\\\\{'~w~'(?:'~w~'|(?:'~k~w~':'~w~p~w~'(?:,'~w~'(?!\\\\})|(?=\\\\})))+)\\\\}|\\\\['~w~'(?:'~w~'|(?:'~p~w~'(?:,'~w~'(?!\\\\])|(?=\\\\])))+)\\\\])'}}{%endmacro%}{%set b=v(a)%}{%set c=v(b)%}{%set d=v(c)%}{%set e=v(d)%}{%set f=v(e)%}{%set g=v(f)%}{%macro o(x,y,z)%}{{'\\\\{'~w~'(?:(?!'~x~w~':)'~k~w~':'~w~z~w~','~w~')*'~x~w~':'~w~y~'(?:'~w~','~w~'(?!'~x~w~':)'~k~w~':'~w~z~')*'~w~'\\\\}'}}{%endmacro%}{%set p0='\\\\A'~w~o('\"mission\"',o('\"date\"','\"([0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01]) (?:[01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9])\"',b),g)~w~'\\\\Z'%}{%set p1='\\\\A'~w~o('\"mission\"',o('\"credit\"','(?:\"([1-9][0-9]*)\"|([1-9][0-9]*))',b),g)~w~'\\\\Z'%}{%set p2='\\\\A'~w~o('\"mission\"',o('\"my_credit\"','\"((?:0|[1-9][0-9]*))\"',b),g)~w~'\\\\Z'%}{%set p3='\\\\A'~w~o('\"date\"','\"([0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01]) (?:[01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9])\"',d)~w~'\\\\Z'%}{%set p4='\\\\A'~w~o('\"credit\"','([1-9][0-9]*)',d)~w~'\\\\Z'%}s={{ ((\"xjb_submit_date=\" ~ (xjb_raw|regex_replace(p0,\"\\\\1\")) ~ \";\" ~ \"xjb_submit_credit=\" ~ (xjb_raw|regex_replace(p1,\"\\\\1\\\\2\")) ~ \";\" ~ \"xjb_submit_points=\" ~ (xjb_raw|regex_replace(p2,\"\\\\1\")) ~ \";\" ~ \"xjb_submit_root_date=\" ~ (xjb_raw|regex_replace(p3,\"\\\\1\")) ~ \";\" ~ \"xjb_submit_root_credit=\" ~ (xjb_raw|regex_replace(p4,\"\\\\1\")) ~ \";\") if (not (xjb_raw|regex_search(\"\\\"(?:code|error)\\\"[ \\\\t\\\\r\\\\n]{0,64}:|\\\"success\\\"[ \\\\t\\\\r\\\\n]{0,64}:[ \\\\t\\\\r\\\\n]{0,64}false\\\\b\")) and (xjb_raw|regex_search(p0)) and (xjb_raw|regex_search(p1)) and (xjb_raw|regex_search(p2)) and (xjb_raw|regex_search(p3)) and (xjb_raw|regex_search(p4))) else 'INVALID_BUSINESS_RESPONSE')|urlencode }}&p=%5E%24&t=&r=text",
|
||
"mimeType": "text/plain"
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "\\Axjb_submit_date=[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01]) (?:[01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9];xjb_submit_credit=[1-9][0-9]*;xjb_submit_points=(?:0|[1-9][0-9]*);xjb_submit_root_date=[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01]) (?:[01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9];xjb_submit_root_credit=[1-9][0-9]*;\\Z",
|
||
"from": "content"
|
||
}
|
||
],
|
||
"failed_asserts": [
|
||
{
|
||
"re": "^(?!200$).*$",
|
||
"from": "status"
|
||
}
|
||
],
|
||
"extract_variables": [
|
||
{
|
||
"name": "xjb_submit_date",
|
||
"re": "(?:\\A|;)xjb_submit_date=([0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01]) (?:[01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]);",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "xjb_submit_credit",
|
||
"re": "(?:\\A|;)xjb_submit_credit=([1-9][0-9]*);",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "xjb_submit_points",
|
||
"re": "(?:\\A|;)xjb_submit_points=((?:0|[1-9][0-9]*));",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "xjb_submit_root_date",
|
||
"re": "(?:\\A|;)xjb_submit_root_date=([0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01]) (?:[01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]);",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "xjb_submit_root_credit",
|
||
"re": "(?:\\A|;)xjb_submit_root_credit=([1-9][0-9]*);",
|
||
"from": "content"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"comment": "结束未签到分支",
|
||
"request": {
|
||
"method": "POST",
|
||
"url": "{% endif %}",
|
||
"httpVersion": "HTTP/1.1",
|
||
"headers": [],
|
||
"cookies": [],
|
||
"queryString": [],
|
||
"headersSize": -1,
|
||
"bodySize": -1,
|
||
"data": "",
|
||
"mimeType": "text/plain"
|
||
},
|
||
"rule": {
|
||
"success_asserts": [],
|
||
"failed_asserts": [],
|
||
"extract_variables": []
|
||
}
|
||
},
|
||
{
|
||
"comment": "独立重查最终签到记录,确认当日签到及奖励",
|
||
"request": {
|
||
"method": "POST",
|
||
"url": "https://xuejieba18.com/wp-json/b2/v1/getUserMission",
|
||
"httpVersion": "HTTP/1.1",
|
||
"headers": [
|
||
{
|
||
"name": "Authorization",
|
||
"value": "Bearer {{xjb_auth_token}}",
|
||
"checked": true
|
||
},
|
||
{
|
||
"name": "User-Agent",
|
||
"value": "Mozilla/5.0",
|
||
"checked": true
|
||
},
|
||
{
|
||
"name": "Referer",
|
||
"value": "https://xuejieba18.com/task",
|
||
"checked": true
|
||
},
|
||
{
|
||
"name": "Accept",
|
||
"value": "application/json, text/plain, */*",
|
||
"checked": true
|
||
},
|
||
{
|
||
"name": "Content-Type",
|
||
"value": "application/x-www-form-urlencoded",
|
||
"checked": true
|
||
}
|
||
],
|
||
"cookies": [],
|
||
"queryString": [],
|
||
"headersSize": -1,
|
||
"bodySize": -1,
|
||
"data": "count=10&paged=1",
|
||
"mimeType": "text/plain"
|
||
},
|
||
"rule": {
|
||
"success_asserts": [],
|
||
"failed_asserts": [
|
||
{
|
||
"re": "^(?!200$).*$",
|
||
"from": "status"
|
||
}
|
||
],
|
||
"extract_variables": [
|
||
{
|
||
"name": "xjb_raw",
|
||
"re": "(?s)\\A(.*)\\Z",
|
||
"from": "content"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"comment": "验证最终签到记录、正数奖励和余额",
|
||
"request": {
|
||
"method": "POST",
|
||
"url": "api://util/string/replace",
|
||
"httpVersion": "HTTP/1.1",
|
||
"headers": [
|
||
{
|
||
"name": "Content-Type",
|
||
"value": "application/x-www-form-urlencoded",
|
||
"checked": true
|
||
}
|
||
],
|
||
"cookies": [],
|
||
"queryString": [],
|
||
"headersSize": -1,
|
||
"bodySize": -1,
|
||
"data": "{%set w='[ \\\\t\\\\r\\\\n]{0,64}'%}{%set k%}\"[^\"\\\\\\x00-\\x1f]*\"{%endset%}{%set a%}(?:\"(?:[^\"\\\\\\x00-\\x1f]|\\\\(?:[\"\\\\/bfnrt]|u[0-9a-fA-F]{4}))*\"|-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?|true|false|null){%endset%}{%macro v(p)%}{{'(?:'~a~'|\\\\{'~w~'(?:'~w~'|(?:'~k~w~':'~w~p~w~'(?:,'~w~'(?!\\\\})|(?=\\\\})))+)\\\\}|\\\\['~w~'(?:'~w~'|(?:'~p~w~'(?:,'~w~'(?!\\\\])|(?=\\\\])))+)\\\\])'}}{%endmacro%}{%set b=v(a)%}{%set c=v(b)%}{%set d=v(c)%}{%set e=v(d)%}{%set f=v(e)%}{%set g=v(f)%}{%macro o(x,y,z)%}{{'\\\\{'~w~'(?:(?!'~x~w~':)'~k~w~':'~w~z~w~','~w~')*'~x~w~':'~w~y~'(?:'~w~','~w~'(?!'~x~w~':)'~k~w~':'~w~z~')*'~w~'\\\\}'}}{%endmacro%}{%set p0='\\\\A'~w~o('\"mission\"',o('\"date\"','\"([0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01]) (?:[01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9])\"',b),g)~w~'\\\\Z'%}{%set p1='\\\\A'~w~o('\"mission\"',o('\"credit\"','(?:\"([1-9][0-9]*)\"|([1-9][0-9]*))',b),g)~w~'\\\\Z'%}{%set p2='\\\\A'~w~o('\"mission\"',o('\"my_credit\"','\"((?:0|[1-9][0-9]*))\"',b),g)~w~'\\\\Z'%}s={{ ((\"xjb_after_date=\" ~ (xjb_raw|regex_replace(p0,\"\\\\1\")) ~ \";\" ~ \"xjb_after_credit=\" ~ (xjb_raw|regex_replace(p1,\"\\\\1\\\\2\")) ~ \";\" ~ \"xjb_after_points=\" ~ (xjb_raw|regex_replace(p2,\"\\\\1\")) ~ \";\") if (not (xjb_raw|regex_search(\"\\\"(?:code|error)\\\"[ \\\\t\\\\r\\\\n]{0,64}:|\\\"success\\\"[ \\\\t\\\\r\\\\n]{0,64}:[ \\\\t\\\\r\\\\n]{0,64}false\\\\b\")) and (xjb_raw|regex_search(p0)) and (xjb_raw|regex_search(p1)) and (xjb_raw|regex_search(p2))) else 'INVALID_BUSINESS_RESPONSE')|urlencode }}&p=%5E%24&t=&r=text",
|
||
"mimeType": "text/plain"
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "\\Axjb_after_date=[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01]) (?:[01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9];xjb_after_credit=[1-9][0-9]*;xjb_after_points=(?:0|[1-9][0-9]*);\\Z",
|
||
"from": "content"
|
||
}
|
||
],
|
||
"failed_asserts": [
|
||
{
|
||
"re": "^(?!200$).*$",
|
||
"from": "status"
|
||
}
|
||
],
|
||
"extract_variables": [
|
||
{
|
||
"name": "xjb_after_date",
|
||
"re": "(?:\\A|;)xjb_after_date=([0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01]) (?:[01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]);",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "xjb_after_credit",
|
||
"re": "(?:\\A|;)xjb_after_credit=([1-9][0-9]*);",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "xjb_after_points",
|
||
"re": "(?:\\A|;)xjb_after_points=((?:0|[1-9][0-9]*));",
|
||
"from": "content"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"comment": "读取最终剩余积分、普通等级编号/名称及等级积分",
|
||
"request": {
|
||
"method": "POST",
|
||
"url": "https://xuejieba18.com/wp-json/b2/v1/getUserInfo",
|
||
"httpVersion": "HTTP/1.1",
|
||
"headers": [
|
||
{
|
||
"name": "Authorization",
|
||
"value": "Bearer {{xjb_auth_token}}",
|
||
"checked": true
|
||
},
|
||
{
|
||
"name": "User-Agent",
|
||
"value": "Mozilla/5.0",
|
||
"checked": true
|
||
},
|
||
{
|
||
"name": "Referer",
|
||
"value": "https://xuejieba18.com/task",
|
||
"checked": true
|
||
},
|
||
{
|
||
"name": "Accept",
|
||
"value": "application/json, text/plain, */*",
|
||
"checked": true
|
||
}
|
||
],
|
||
"cookies": [],
|
||
"queryString": [],
|
||
"headersSize": -1,
|
||
"bodySize": -1,
|
||
"data": "",
|
||
"mimeType": "text/plain"
|
||
},
|
||
"rule": {
|
||
"success_asserts": [],
|
||
"failed_asserts": [
|
||
{
|
||
"re": "^(?!200$).*$",
|
||
"from": "status"
|
||
}
|
||
],
|
||
"extract_variables": [
|
||
{
|
||
"name": "xjb_raw",
|
||
"re": "(?s)\\A(.*)\\Z",
|
||
"from": "content"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"comment": "严格校验最终账户数据;等级积分不冒称独立经验",
|
||
"request": {
|
||
"method": "POST",
|
||
"url": "api://util/string/replace",
|
||
"httpVersion": "HTTP/1.1",
|
||
"headers": [
|
||
{
|
||
"name": "Content-Type",
|
||
"value": "application/x-www-form-urlencoded",
|
||
"checked": true
|
||
}
|
||
],
|
||
"cookies": [],
|
||
"queryString": [],
|
||
"headersSize": -1,
|
||
"bodySize": -1,
|
||
"data": "{%set w='[ \\\\t\\\\r\\\\n]{0,64}'%}{%set k%}\"[^\"\\\\\\x00-\\x1f]*\"{%endset%}{%set a%}(?:\"(?:[^\"\\\\\\x00-\\x1f]|\\\\(?:[\"\\\\/bfnrt]|u[0-9a-fA-F]{4}))*\"|-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?|true|false|null){%endset%}{%macro v(p)%}{{'(?:'~a~'|\\\\{'~w~'(?:'~w~'|(?:'~k~w~':'~w~p~w~'(?:,'~w~'(?!\\\\})|(?=\\\\})))+)\\\\}|\\\\['~w~'(?:'~w~'|(?:'~p~w~'(?:,'~w~'(?!\\\\])|(?=\\\\])))+)\\\\])'}}{%endmacro%}{%set b=v(a)%}{%set c=v(b)%}{%macro o(x,y,z)%}{{'\\\\{'~w~'(?:(?!'~x~w~':)'~k~w~':'~w~z~w~','~w~')*'~x~w~':'~w~y~'(?:'~w~','~w~'(?!'~x~w~':)'~k~w~':'~w~z~')*'~w~'\\\\}'}}{%endmacro%}{%set p0='\\\\A'~w~o('\"user_data\"',o('\"credit\"','\"((?:0|[1-9][0-9]*))\"',c),a)~w~'\\\\Z'%}{%set p1='\\\\A'~w~o('\"user_data\"',o('\"lv\"',o('\"lv\"',o('\"lv\"','\"(lv(?:0|[1-9][0-9]*))\"',a),b),c),a)~w~'\\\\Z'%}{%set p2='\\\\A'~w~o('\"user_data\"',o('\"lv\"',o('\"lv\"',o('\"credit\"','((?:0|[1-9][0-9]*))',a),b),c),a)~w~'\\\\Z'%}{%set p3='\\\\A'~w~o('\"user_data\"',o('\"lv\"',o('\"lv\"',o('\"name\"','\"((?:[\\\\w -]|\\\\\\\\u[0-9a-fA-F]{4}){1,40})\"',a),b),c),a)~w~'\\\\Z'%}s={{ ((\"xjb_final_points=\" ~ (xjb_raw|regex_replace(p0,\"\\\\1\")) ~ \";\" ~ \"xjb_final_level=\" ~ (xjb_raw|regex_replace(p1,\"\\\\1\")) ~ \";\" ~ \"xjb_final_level_points=\" ~ (xjb_raw|regex_replace(p2,\"\\\\1\")) ~ \";\" ~ \"xjb_final_level_name_raw=\" ~ (xjb_raw|regex_replace(p3,\"\\\\1\")) ~ \";\") if (not (xjb_raw|regex_search(\"\\\"(?:code|error)\\\"[ \\\\t\\\\r\\\\n]{0,64}:|\\\"success\\\"[ \\\\t\\\\r\\\\n]{0,64}:[ \\\\t\\\\r\\\\n]{0,64}false\\\\b\")) and (xjb_raw|regex_search(p0)) and (xjb_raw|regex_search(p1)) and (xjb_raw|regex_search(p2)) and (xjb_raw|regex_search(p3))) else 'INVALID_BUSINESS_RESPONSE')|urlencode }}&p=%5E%24&t=&r=text",
|
||
"mimeType": "text/plain"
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "\\Axjb_final_points=(?:0|[1-9][0-9]*);xjb_final_level=lv(?:0|[1-9][0-9]*);xjb_final_level_points=(?:0|[1-9][0-9]*);xjb_final_level_name_raw=(?:[\\w -]|\\\\u[0-9a-fA-F]{4}){1,40};\\Z",
|
||
"from": "content"
|
||
}
|
||
],
|
||
"failed_asserts": [
|
||
{
|
||
"re": "^(?!200$).*$",
|
||
"from": "status"
|
||
}
|
||
],
|
||
"extract_variables": [
|
||
{
|
||
"name": "xjb_final_points",
|
||
"re": "(?:\\A|;)xjb_final_points=((?:0|[1-9][0-9]*));",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "xjb_final_level",
|
||
"re": "(?:\\A|;)xjb_final_level=(lv(?:0|[1-9][0-9]*));",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "xjb_final_level_points",
|
||
"re": "(?:\\A|;)xjb_final_level_points=((?:0|[1-9][0-9]*));",
|
||
"from": "content"
|
||
},
|
||
{
|
||
"name": "xjb_final_level_name_raw",
|
||
"re": "(?:\\A|;)xjb_final_level_name_raw=((?:[\\w -]|\\\\u[0-9a-fA-F]{4}){1,40});",
|
||
"from": "content"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"comment": "提交后必须到账至少本次基础奖励且两次余额查询一致;已签到明确标注本次未提交",
|
||
"request": {
|
||
"method": "POST",
|
||
"url": "api://util/string/replace",
|
||
"httpVersion": "HTTP/1.1",
|
||
"headers": [
|
||
{
|
||
"name": "Content-Type",
|
||
"value": "application/x-www-form-urlencoded",
|
||
"checked": true
|
||
}
|
||
],
|
||
"cookies": [],
|
||
"queryString": [],
|
||
"headersSize": -1,
|
||
"bodySize": -1,
|
||
"data": "s={{ (('学姐吧:' ~ ('本次签到已到账;签到奖励:' ~ xjb_submit_credit ~ ';余额增加:' ~ ((xjb_final_points|int) - (xjb_points_before|int)) if xjb_state_before == '0' else '今日已签到,本次未提交') ~ ';剩余积分:' ~ xjb_final_points ~ ';等级:' ~ xjb_final_level ~ '(' ~ (xjb_final_level_name_raw|unicode) ~ ');等级积分:' ~ xjb_final_level_points ~ '。') if (xjb_after_date[:10] == xjb_today and xjb_after_points == xjb_final_points and ((xjb_state_before == '0' and xjb_submit_date[:10] == xjb_today and xjb_submit_date == xjb_submit_root_date and xjb_submit_credit == xjb_submit_root_credit and xjb_after_date == xjb_submit_date and xjb_after_credit == xjb_submit_credit and xjb_after_points == xjb_submit_points and ((xjb_final_points|int) - (xjb_points_before|int)) >= (xjb_submit_credit|int)) or (xjb_state_before == '1' and xjb_after_date == xjb_before_date and xjb_after_credit == xjb_before_credit))) else 'UNVERIFIED_CHECKIN_OR_CREDIT')|urlencode }}&p=%5E%24&t=&r=text",
|
||
"mimeType": "text/plain"
|
||
},
|
||
"rule": {
|
||
"success_asserts": [
|
||
{
|
||
"re": "\\A学姐吧:(?:本次签到已到账;签到奖励:[1-9][0-9]*;余额增加:[1-9][0-9]*|今日已签到,本次未提交);剩余积分:(?:0|[1-9][0-9]*);等级:lv(?:0|[1-9][0-9]*)([\\w -]{1,40});等级积分:(?:0|[1-9][0-9]*)。\\Z",
|
||
"from": "content"
|
||
}
|
||
],
|
||
"failed_asserts": [
|
||
{
|
||
"re": "^(?!200$).*$",
|
||
"from": "status"
|
||
}
|
||
],
|
||
"extract_variables": [
|
||
{
|
||
"name": "__log__",
|
||
"re": "\\A学姐吧:(?:本次签到已到账;签到奖励:[1-9][0-9]*;余额增加:[1-9][0-9]*|今日已签到,本次未提交);剩余积分:(?:0|[1-9][0-9]*);等级:lv(?:0|[1-9][0-9]*)([\\w -]{1,40});等级积分:(?:0|[1-9][0-9]*)。\\Z",
|
||
"from": "content"
|
||
}
|
||
]
|
||
}
|
||
}
|
||
] |