dev_aliyun2
harry 5 years ago
parent 2e06db4d02
commit c089eb2398

@ -17,14 +17,12 @@ import AccountProfile from "./modules/user/AccountProfile";
import Accountnewprofile from './modules/user/Accountnewprofile';
import Certifiedprofessional from './modules/modals/Certifiedprofessional';
import Loading from './Loading'
import { Loadable } from 'educoder';
import moment from 'moment'
import history from './history';
import { SnackbarHOC } from 'educoder'
import { SnackbarHOC,Loadable } from 'educoder'
import { initAxiosInterceptors } from './AppConfig'
import { Provider } from 'react-redux';
import configureStore from './redux/stores/configureStore';

@ -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);

@ -19,12 +19,6 @@ export { updatePageParams as updatePageParams } from './RouterUtil';
export { bytesToSize as bytesToSize } from './UnitUtil';
export {
markdownToHTML, uploadNameSizeSeperator, appendFileSizeToUploadFile, appendFileSizeToUploadFileAll, isImageExtension,
downloadFile, sortDirections
} from './TextUtil'
export { handleDateString, getNextHalfHourOfMoment, formatDuring } from './DateUtil'
export { markdownToHTML, uploadNameSizeSeperator, appendFileSizeToUploadFile, appendFileSizeToUploadFileAll, isImageExtension,
downloadFile, sortDirections } from './TextUtil'
export { handleDateString, getNextHalfHourOfMoment,formatDuring,formatSeconds} from './DateUtil'

Loading…
Cancel
Save