ucenter_login_api.yml 1.1 KB
name: 用户中心账号登录
base_url: ${ENV(base_public_url)}
verify: False
variables:
    currtime: ${make_time()}
    uuid: ${make_uuid()}
    access_token: ''
    sign: ${make_sign($currtime, $uuid,$access_token)}
    grantType: signInPassword
    phone: ${ENV(appphone)}
    password: 7c4a8d09ca3762af61e59520943dc26494f8941b
    Type: 1
    msg: ok
teardown_hooks:
    - ${teardown_hook_get_cuid($response)}
    - ${teardown_hook_get_credentials($response)}
    - ${teardown_hook_get_muid($response)}
    - ${teardown_hook_get_cid($response)}

request:
    headers:
        Content-Type: application/json;charset=utf-8
        User-Agent: okhttp/3.12.3
        X-MMM-AccessToken: $access_token
        X-MMM-DeviceType: '1'
        X-MMM-Sign: $sign
        X-MMM-Timestamp: $currtime
        X-MMM-Uuid: $uuid
        X-MMM-Version: 0.9.0
    json:
        grantType: $grantType
        password: $password
        phone: $phone
        clientId: lks3Z8Ncn2j
    method: POST
    url: ucenter/v2/auth/loginAggregate
extract:
#    cuid: content.data.cuid
    credentials: content.data.credentials
validate:
-   eq:
    - content.msg
    - ok