|
|
|
@ -41,7 +41,7 @@ if (isDev) {
|
|
|
|
|
//ebugType="teacher";
|
|
|
|
|
// 学生
|
|
|
|
|
//debugType="student";
|
|
|
|
|
window.railsgettimes = function(proxy) {
|
|
|
|
|
function railsgettimes(proxy) {
|
|
|
|
|
if(timestamp&&checkSubmitFlg===false){
|
|
|
|
|
$.ajax({url:proxy,async:false,success:function(data){
|
|
|
|
|
if(data.status===0){
|
|
|
|
@ -130,6 +130,7 @@ export function initAxiosInterceptors(props) {
|
|
|
|
|
} else {
|
|
|
|
|
// 加api前缀
|
|
|
|
|
railsgettimes(`/api/main/first_stamp.json`);
|
|
|
|
|
let newopens=md5(opens+timestamp)
|
|
|
|
|
config.url = url;
|
|
|
|
|
if (config.url.indexOf('?') == -1) {
|
|
|
|
|
config.url = `${config.url}?&randomcode=${timestamp}&client_key=${newopens}`;
|
|
|
|
|