pwdLogin_api.yml 766 字节
name: 企业平台账号登录
base_url: ${ENV(base_business_admin)}
verify: False
variables:
    phone: ${ENV(adminphone)}
    password: 7c4a8d09ca3762af61e59520943dc26494f8941b

request:
    headers:
        Content-Type: application/json; charset=UTF-8
        Origin: https://enterprise-platform-dev.fjmaimaimai.com
        Referer: https://enterprise-platform-dev.fjmaimaimai.com/
        User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36
        X-Requested-With: XMLHttpRequest
    json:
        password: $password
        username: ${phone}
    method: POST
    url: /auth/pwdLogin
extract:
    pwdLogintoken: content.data.access.token
validate:
-   eq:
    - content.msg
    - ok