|
@@ -54,10 +54,12 @@ class AJAXHelper {
|
|
|
platform = 'web';
|
|
|
}
|
|
|
let url = AJAXHelper.genAPIUrl(path, method, { eid, uid, terminal: platform, ...data });
|
|
|
-
|
|
|
+ //添加时间戳
|
|
|
+ let timestamp = new Date().getTime();
|
|
|
let xmlHttpReq = new XMLHttpRequest();
|
|
|
xmlHttpReq.open(method, url, true);
|
|
|
//构造请求头(每个请求都带的公共参数)
|
|
|
+ xmlHttpReq.setRequestHeader('t', timestamp);
|
|
|
xmlHttpReq.setRequestHeader('eid', eid);
|
|
|
xmlHttpReq.setRequestHeader('uid', uid);
|
|
|
xmlHttpReq.setRequestHeader('sign', sign);
|