|
|
|
@ -1,3 +1,5 @@
|
|
|
|
|
import React from "react";
|
|
|
|
|
|
|
|
|
|
import axios from 'axios';
|
|
|
|
|
import md5 from 'md5';
|
|
|
|
|
import { requestProxy } from "./indexEduplus2RequestProxy";
|
|
|
|
@ -116,37 +118,8 @@ function railsgettimes(proxy) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
clearAllCookie()
|
|
|
|
|
|
|
|
|
|
if (timestamp && checkSubmitFlg === false) {
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: proxy, async: false, success: function (data) {
|
|
|
|
|
if (data.status === 0) {
|
|
|
|
|
timestamp = data.message;
|
|
|
|
|
setpostcookie();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
checkSubmitFlg = true
|
|
|
|
|
window.setTimeout(() => {
|
|
|
|
|
checkSubmitFlg = false;
|
|
|
|
|
}, 2000);
|
|
|
|
|
} else if (checkSubmitFlg === false) {
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: proxy, async: false, success: function (data) {
|
|
|
|
|
if (data.status === 0) {
|
|
|
|
|
timestamp = data.message;
|
|
|
|
|
setpostcookie();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
checkSubmitFlg = true
|
|
|
|
|
window.setTimeout(() => {
|
|
|
|
|
checkSubmitFlg = false;
|
|
|
|
|
}, 2000);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
window._debugType = debugType;
|
|
|
|
@ -381,9 +354,6 @@ export function initAxiosInterceptors(props) {
|
|
|
|
|
}, 2000);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (response.data.status === 500) {
|
|
|
|
|
locationurl('/500');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// if (response.data.status === 402) {
|
|
|
|
|
// console.log(response.data.status);
|
|
|
|
|