diff --git a/index.html b/index.html index 7a6adf9bc2..509b07d2ac 100644 --- a/index.html +++ b/index.html @@ -172,7 +172,7 @@ display: block !important; } - + \ No newline at end of file diff --git a/umi.57615345.js b/umi.42d2f36d.js similarity index 99% rename from umi.57615345.js rename to umi.42d2f36d.js index 04b6601662..1e6e2feccd 100644 --- a/umi.57615345.js +++ b/umi.42d2f36d.js @@ -968,10 +968,10 @@ http://j.mp/37Fkd5Q `);Pe=JSON.parse(Gt)}catch(Me){}}else Jt.headers["Content-Type"]==="application/xml"?Pe=yield bt.text():(ht=Ie.body)!=null&&ht.autoDownload||(et=Ie.params)!=null&&et.autoDownload?Pe=yield Ut(bt):Pe=yield bt.arrayBuffer();try{Pe.status===401&&(!((Ue=Jt.params)!=null&&Ue.hidePopLogin)||!((ye=Jt.body)!=null&&ye.hidePopLogin))&&(0,u.getDvaApp)()._store.dispatch({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),Pe.status===402&&(localStorage.getItem("addinfo")==="2"?(0,u.getDvaApp)()._store.dispatch({type:"shixunHomeworks/setActionTabs",payload:{key:"\u586B\u5145\u4FE1\u606F\u5F39\u7A97"}}):(j=j||l.default.confirm({visible:!1,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88"}),j.update({centered:!0,visible:!0,title:"\u63D0\u793A",content:"\u60A8\u9700\u8981\u53BB\u5B8C\u5584\u60A8\u7684\u4E2A\u4EBA\u8D44\u6599\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD",okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:()=>{u.history.push("/account/profile/edit")}})))}catch(Me){console.log("fetcherr",Me)}return Y(Pe,M),Pe})).catch(bt=>{try{const ht=bt.code;if(bt instanceof TypeError&&window.showNetworkErrorTip(`${M}${bt.message}`),ht){if(ht===401){(0,u.getDvaApp)()._store.dispatch({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}});return}Y(bt,M)}else M.includes("/file/filePatchMerge")?(0,u.getDvaApp)()._store.dispatch({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5206\u7247\u4E13\u7528504",params:Jt.body}}):bt.message!=="403"&&window.showNetworkErrorTip(`${M}${bt.message}`);return bt}catch(ht){}})}let q=!1,J=!1;const Y=(M,Q)=>{var de,Se,Ie;if(M.status==-6&&!J){J=!0,(0,a.d8)("_educoder_session","logout",1),(0,a.m5)(),setTimeout(()=>J=!1,500),l.default.info({title:"\u7CFB\u7EDF\u901A\u77E5",content:M.message,okText:"\u77E5\u9053\u4E86",maskStyle:{background:"#000"},onOk:()=>{window.location.reload()}});return}if(M.status==-7){J=!0,setTimeout(()=>J=!1,500);let Fe="";(de=M==null?void 0:M.data)!=null&&de.exercise_list&&((Ie=(Se=M==null?void 0:M.data)==null?void 0:Se.exercise_list)==null||Ie.map(Ft=>{Fe+=`\u300A${Ft.exercise_name}\u300B`})),l.default.info({title:"\u63D0\u793A",content:h.createElement("div",{id:"fetchStatus7",className:"fetchStatus7"},""),maskClosable:!1,closeIcon:!1,width:550,maskStyle:{background:"#000"},okText:"\u8FD4\u56DE\u9996\u9875",onOk:()=>{window.location.href="/"}}),setTimeout(()=>{document.getElementById("fetchStatus7").innerHTML=`
\u60A8\u5F53\u524D\u6709\u6B63\u5728\u8FDB\u884C\u7684\u8003\u8BD5 ${Fe} \uFF0C\u8BF7\u5728\u8003\u8BD5\u7ED3\u675F\u540E\u8BBF\u95EE\u8BE5\u9875\u9762
`},500);return}if((M.status==-1||M.status==-2||M.status==-102||M.status>400)&&M.status!=403&&!J){J=!0,setTimeout(()=>J=!1,500),c.ZP.warning({content:M.message,key:"message-key"});return}const je={403:"/403",404:"/404",500:"/500"};if(je[M.status]&&!q){const{user:Fe}=(0,u.getDvaApp)()._store.getState(),{userInfo:Ft}=Fe;throw window.location.pathname.indexOf("/users")>-1&&document.domain==="kepukehuan.educoder.net"&&(q=!0),setTimeout(()=>q=!1,500),sessionStorage.setItem("errorStatus",JSON.stringify(M)),Object.values(je).includes(window.location.pathname)?console.log("\u5F53\u524D\u8DEF\u5F84\u5B58\u5728\u4E8E mapping \u4E2D, \u4E0D\u518D\u6267\u884C\u8DF3\u8F6C"):location.replace(je[M.status]),new Error("403")}};function le(M,Q){return ce(`/api/${M}`,{method:"Get",params:Q||{}})}function ne(M,Q){return ce(`/${M}`,{method:"Get",params:Q})}function ee(M,Q){return ce(`/api/${M}`,{method:"Post",body:D({},Q)})}function ie(M,Q){return ce(`/api/${M}`,{method:"Put",body:D({},Q)})}function F(M,Q){return ce(`/api/${M}`,{method:"delete",body:D({},Q||{})})}},64892:function(d,g,e){"use strict";e.d(g,{Bn:function(){return l},hw:function(){return i},mi:function(){return r}});const r="WTJJelpXRXdaakk0Tm1SbE56UTFPRFl5TXpnNVltWmtZVE0zTVdSalltST0=",i="WVdaak1UVmhOVEF3TkRRd05qZGlZemRsTVdZeFptSTROek5rT0daak1UYz0=",l="T1RkaE1XWTRaalJoTUdaaE9HUmxaR016T0RGa05XTTNPRFkwTkdJeVpUQT0="},24768:function(d,g,e){"use strict";e.d(g,{AL:function(){return $},Iy:function(){return p},Qv:function(){return b},ez:function(){return B},jb:function(){return y}});var r=e(32834),i=e.n(r),l=e(11690),c=e.n(l);let f=1;function o(oe,ae){const ce=oe.match(/^(\s+)(?:```)/);if(ce===null)return ae;const q=ce[1];return ae.split(` `).map(J=>{const Y=J.match(/^\s+/);if(Y===null)return J;const[le]=Y;return le.length>=q.length?J.slice(q.length):J}).join(` `)}let h=[],u=["