在Tests中写好代码,调用登录接口后点击右上角眼睛查看是否被设置为公共参数
var data = pm.response.json() var token = data.data.token_info.token; var member_id = data.data.id; pm.environment.set("token", token); pm.environment.set("member_id", member_id);