记录 postman 相关用法。

1
2
3
4
5
6
7
var city_id = pm.request.url.query.get("cityId");
console.log(city_id);
var ts = parseInt(Date.now() / 1000);
console.log(ts);
var hash = CryptoJS.MD5(password + ts + city_id).toString();
pm.globals.set("moji_key", hash);
pm.globals.set("ts", ts);