使用postman发送一个get请求,返回400,提示Local time and server time are too different, please check and adjust the time.
看了下浏览器的时间,使用的是GMT时间,与本地时间差了8小时
然后我搜了搜,写了前置脚本,设置环境变量时间,但是返回还是400
var moment = require('moment');
var current_timestamp = moment().format("YYYY-MM-DD H:mm:ss");
pm.globals.set("current_timestamp",current_timestamp);
console.log(moment());
浏览器时间我没找到地方改,感觉只能在postman这边改,第一次用postman,帮帮我