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

金蝶KDcloud签到 #628

Open
masterikk opened this issue Apr 12, 2024 · 0 comments
Open

金蝶KDcloud签到 #628

masterikk opened this issue Apr 12, 2024 · 0 comments
Labels

Comments

@masterikk
Copy link

HAR 模板名称

金蝶KDcloud签到

作者信息

masterikk

模板备注及说明

金蝶论坛vip.kingdee.com

HAR 文件名

KD.har

其他信息

No response

HAR 模板内容

[
  {
    "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"
        },
        {
          "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"
        }
      ]
    }
  }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant