场景1:接口需传入token
场景2:token类型为Bearer
对于1,直接获取响应中的token值
jsonDate是整个返回的json对象
其他接口在请求头中直接引用 {{token}}
2、对于接口需要的token类型为Bearer时,直接使用postman自带的设置,请求时token就会自动带上Bearer了
postman提取token
原文:https://www.cnblogs.com/lxhuan/p/15069912.html