|
|
|
@ -86,17 +86,6 @@ export function initAxiosInterceptors(props) {
|
|
|
|
|
// 如果需要支持重复的请求,考虑config里面自定义一个allowRepeat参考来控制
|
|
|
|
|
const requestMap = {};
|
|
|
|
|
|
|
|
|
|
<<<<<<< HEAD
|
|
|
|
|
window.railsgettimes = function(proxy) {
|
|
|
|
|
// $.ajax({url:`${proxy}/api/main/first_stamp.json`,async:false,success:function(data,status){
|
|
|
|
|
// if(data.status===0){
|
|
|
|
|
// return data.message;
|
|
|
|
|
// }
|
|
|
|
|
// }});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
=======
|
|
|
|
|
>>>>>>> dev_aliyun
|
|
|
|
|
window.setfalseInRequestMap = function(keyName) {
|
|
|
|
|
requestMap[keyName] = false;
|
|
|
|
|
}
|
|
|
|
@ -131,12 +120,9 @@ export function initAxiosInterceptors(props) {
|
|
|
|
|
if(`${config[0]}`!=`true`){
|
|
|
|
|
let timestamp = Date.parse(new Date())/1000;
|
|
|
|
|
if (window.location.port === "3007") {
|
|
|
|
|
<<<<<<< HEAD
|
|
|
|
|
// let timestamp=railsgettimes(proxy);
|
|
|
|
|
console.log(timestamp)
|
|
|
|
|
=======
|
|
|
|
|
railsgettimes(`${proxy}/api/main/first_stamp.json`);
|
|
|
|
|
>>>>>>> dev_aliyun
|
|
|
|
|
let newopens=md5(opens+timestamp)
|
|
|
|
|
config.url = `${proxy}${url}`;
|
|
|
|
|
if (config.url.indexOf('?') == -1) {
|
|
|
|
|