[JavaScript] 纯文本查看 复制代码 gatewaySign: function(request, url) {
var version = '1.0.0';
var appKey = '926DE408F7694EB4AA6E780418561F81';
var appSecret = '908D0ABF30B84A258FD856B45609C9DB';
var timestamp = new Date().valueOf();
var str = 'path' + url + 'timestamp' + timestamp + 'version' + version + appSecret;
var sign = $.md5(str).toUpperCase();
request.setRequestHeader('version', version);
request.setRequestHeader('appKey', appKey);
request.setRequestHeader('timestamp', timestamp);
request.setRequestHeader('sign', sign)
} |