// 獲取全局變量
uid = postman.getGlobalVariable(“uid”)
sid = postman.getGlobalVariable(“sid”)
//設(shè)置當(dāng)前時間戳
postman.setGlobalVariable(“time”,Math.round(new Date().getTime()));
time = postman.getGlobalVariable(‘time’)
//設(shè)置KEY_WORD為全局變量
postman.setGlobalVariable(“Key”,“******”)
KEY_WORD = postman.getGlobalVariable(“Key”);文章來源:http://www.zghlxwxcb.cn/news/detail-631135.html
//字符串進行md5加密
var str = “XXX”+“xxx”+time+“KEY_WORD”;
var strmd5= CryptoJS.MD5(str).toString().toUpperCase;
postman.setGlobalVariable(“sign”,strmd5)
附解密網(wǎng)站:md5文章來源地址http://www.zghlxwxcb.cn/news/detail-631135.html
到了這里,關(guān)于postman 攜帶時間戳及md5加密預(yù)處理的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!