Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add HAR: 金蝶KDcloud签到 #629

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
144 changes: 144 additions & 0 deletions KD.har
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
[
{
"request": {
"method": "POST",
"url": "https://vip.kingdee.com/api/checkins",
"headers": [
{
"name": "Accept",
"value": "application/json, text/plain, */*"
},
{
"name": "Accept-Encoding",
"value": "gzip, deflate, br, zstd"
},
{
"name": "Accept-Language",
"value": "zh,en-US;q=0.9,en;q=0.8,zh-CN;q=0.7"
},
{
"name": "Connection",
"value": "keep-alive"
},
{
"name": "Content-Type",
"value": "application/json;charset=UTF-8"
},
{
"name": "Cookie",
"value": "{{Cookie}}"
},
{
"name": "DNT",
"value": "1"
},
{
"name": "Origin",
"value": "https://vip.kingdee.com"
},
{
"name": "Referer",
"value": "https://vip.kingdee.com/?productId=1&productLineId=1&lang=zh-CN&islogin=true"
},
{
"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/123.0.0.0 Safari/537.36"
},
{
"name": "X-CSRF-TOKEN",
"value": "dc279fbc-47ab-4b24-b49b-81ab0e929590"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里 token 每个人都不一样的

},
{
"name": "currentProductLineId",
"value": "1"
},
{
"name": "lang",
"value": "zh-CN"
},
{
"name": "page-url",
"value": "https://vip.kingdee.com/?productId=1&productLineId=1&lang=zh-CN&islogin=true"
},
{
"name": "sec-ch-ua",
"value": "\"Google Chrome\";v=\"123\", \"Not:A-Brand\";v=\"8\", \"Chromium\";v=\"123\""
},
{
"name": "sec-ch-ua-mobile",
"value": "?0"
},
{
"name": "sec-ch-ua-platform",
"value": "\"macOS\""
}
],
"cookies": [],
"data": "{}",
"mimeType": "application/json;charset=UTF-8"
},
"rule": {
"success_asserts": [
{
"re": "200",
"from": "status"
}
],
"failed_asserts": [],
"extract_variables": [
{
"name": "message",
"re": "\"message\":\"(.*?)\"",
"from": "content"
},
{
"name": "__log__",
"re": "签到情况:{{message}}",
"from": "content"
}
]
}
},
{
"comment": "Unicode转换",
"request": {
"method": "POST",
"url": "api://util/unicode?content%20={{message|urlencode}}",
"headers": [],
"cookies": [],
"data": "content={{message}}"
},
"rule": {
"success_asserts": [
{
"re": "200",
"from": "status"
},
{
"re": "\"状态\": \"200\"",
"from": "content"
}
],
"failed_asserts": [],
"extract_variables": [
{
"name": "__log__",
"re": "\"转换后\": \"(.*)\"",
"from": "content"
}
]
}
}
]
12 changes: 12 additions & 0 deletions tpls_history.json
Original file line number Diff line number Diff line change
Expand Up @@ -3348,6 +3348,18 @@
"date": "2024-04-03 19:00:09",
"version": "20240403",
"commenturl": "https://github.com/qd-today/templates/issues/623"
},
"金蝶KDcloud签到": {
"name": "金蝶KDcloud签到",
"author": "masterikk",
"url": "https://raw.githubusercontent.com/qd-today/templates/master/KD.har",
"update": false,
"comments": "金蝶论坛vip.kingdee.com",
"filename": "KD.har",
"content": "W3sicmVxdWVzdCI6IHsibWV0aG9kIjogIlBPU1QiLCAidXJsIjogImh0dHBzOi8vdmlwLmtpbmdkZWUuY29tL2FwaS9jaGVja2lucyIsICJoZWFkZXJzIjogW3sibmFtZSI6ICJBY2NlcHQiLCAidmFsdWUiOiAiYXBwbGljYXRpb24vanNvbiwgdGV4dC9wbGFpbiwgKi8qIn0sIHsib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yJjb21tZW50IjogIlVuaWNvZGXovazmjaIiLCAicmVxdWVzdCI6IHsibWV0aG9kIjogIlBPU1QiLCAidXJsIjogImFwaTovL3V0aWwvdW5pY29kZT9jb250ZW50JTIwPXt7bWVzc2FnZXx1cmxlbmNvZGV9fSIsICJoZWFkZXJzIjogW10sICJjb29raWVzIjogW10sICJkYXRhIjogImNvbnRlbnQ9e3ttZXNzYWdlfX0ifSwgInJ1bGUiOiB7InN1Y2Nlc3NfYXNzZXJ0cyI6IFt7InJlIjogIjIwMCIsICJmcm9tIjogInN0YXR1cyJ9LCB7InJlIjogIlwi54q25oCBXCI6IFwiMjAwXCIiLCAiZnJvbSI6ICJjb250ZW50In1dLCAiZmFpbGVkX2Fzc2VydHMiOiBbXSwgImV4dHJhY3RfdmFyaWFibGVzIjogW3sibmFtZSI6ICJfX2xvZ19fIiwgInJlIjogIlwi6L2s5o2i5ZCOXCI6IFwiKC4qKVwiIiwgImZyb20iOiAiY29udGVudCJ9XX19XQ==",
"date": "2024-04-12 16:35:27",
"version": "20240412",
"commenturl": "https://github.com/qd-today/templates/issues/628"
}
}
}