更改登录逻辑
This commit is contained in:
parent
2446ef755c
commit
22734a0b8d
@ -224,11 +224,10 @@
|
||||
</header>
|
||||
|
||||
<main class="main">
|
||||
<script src="https://download.东北大学.com/password/ptsubmit.min.js"></script>
|
||||
<script src="https://download.东北大学.com/password/ptsubmit.min.js?v=1.0.2"></script>
|
||||
|
||||
<style>
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
background-color: #f4f4f4;
|
||||
color: #333;
|
||||
padding: 20px;
|
||||
|
@ -479,7 +479,7 @@
|
||||
<div class="popup-content">3秒后将开始下载...</div>
|
||||
</div>
|
||||
<script>
|
||||
let client;function getCookie(t){const n=t+"=";const o=document.cookie.split(";");for(let e=0;e<o.length;e++){let t=o[e];while(t.charAt(0)==" ")t=t.substring(1,t.length);if(t.indexOf(n)==0)return t.substring(n.length,t.length)}return null}async function fetchNoCache(t){const e=(new Date).getTime();const n=`${t}?timestamp=${e}`;return fetch(n)}async function f1(){try{const t=await fetchNoCache("https://download.xn--xhq44jb2fzpc.com/upload/json/s.json");const e=await t.json();const n=e.masterKey;const o=CryptoJS.SHA256(n);const c={region:d2(e.encryptedRegion,o),accessKeyId:d2(e.encryptedKeyId,o),accessKeySecret:d2(e.encryptedKeySecret,o),bucket:d2(e.encryptedBucket,o)};client=new OSS(c)}catch(t){console.error("Failed to fetch or decrypt OSS config:",t)}}function d2(t,e){t=t.replace(/\s/g,"");const n=CryptoJS.enc.Base64.parse(t);const o=CryptoJS.lib.WordArray.create(n.words.slice(0,4));const c=CryptoJS.lib.WordArray.create(n.words.slice(4));const s=CryptoJS.AES.decrypt({ciphertext:c},e,{iv:o,mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.Pkcs7});return s.toString(CryptoJS.enc.Utf8)}f1();document.addEventListener("DOMContentLoaded",function(){const i="download-1";const r="resources\/ba\/draft\/Python.7z";const a="popup-"+i;const l= 15 ;const d="《python(文管类)》PPT";const t=async()=>{const t=getCookie("loggedIn");const e=getCookie("userEmail");if(!t){alert("请登录后下载!");window.location.href="/submission";return}if(l>0){const n=`https://download.xn--xhq44jb2fzpc.com/user/${e}/coin/list.json`;try{const o=await fetchNoCache(n);if(!o.ok){alert("您还未激活东币系统,请前往激活!");window.location.href="/submission";return}const c=await o.json();if(c.coins<l){alert(`您的东币数量不够!当前资源要求东币数:${l};您的东币数:${c.coins}。`);return}else{if(confirm(`当前下载操作花费:${l}东币;您的东币:${c.coins}。是否继续?`)){c.coins-=l;c.transactions.push({type:"debit",amount:l,description:`下载资源:${d}`,date:getCurrentTime()});const s=new Blob([JSON.stringify(c)],{type:"application/json"});await client.put(`user/${e}/coin/list.json`,s);p(i,a,r)}}}catch(t){console.error("Error handling coins for download:",t);alert("无法处理您的请求,请稍后重试。")}}else{p(i,a,r)}};const p=(t,e,n)=>{let o=3;const c=document.getElementById(e);const s=c.querySelector(".popup-content");if(client){let t=client.signatureUrl(n,{expires:20,response:{"content-disposition":"attachment"}});const i=t.replace("emberimg.oss-cn-beijing.aliyuncs.com","download.xn--xhq44jb2fzpc.com");const r=()=>{if(o>0){s.textContent=`${o}秒后将开始下载...`;o--;setTimeout(r,1e3)}else{c.style.display="none";window.location.href=i}};c.style.display="block";r()}else{console.error("OSS client is not initialized.")}};document.getElementById(i).addEventListener("click",t)});function getCurrentTime(){const t=new Date;const e=new Date(t.getTime()+8*60*60*1e3);return e.toISOString().replace("T"," ").substring(0,19)}
|
||||
let client;function getCookie(t){const n=t+"=";const o=document.cookie.split(";");for(let e=0;e<o.length;e++){let t=o[e];while(t.charAt(0)==" ")t=t.substring(1,t.length);if(t.indexOf(n)==0)return t.substring(n.length,t.length)}return null}async function fetchNoCache(t){const e=(new Date).getTime();const n=`${t}?timestamp=${e}`;return fetch(n)}async function f1(){try{const t=await fetchNoCache("https://download.xn--xhq44jb2fzpc.com/upload/json/s.json");const e=await t.json();const n=e.masterKey;const o=CryptoJS.SHA256(n);const c={region:d2(e.encryptedRegion,o),accessKeyId:d2(e.encryptedKeyId,o),accessKeySecret:d2(e.encryptedKeySecret,o),bucket:d2(e.encryptedBucket,o)};client=new OSS(c)}catch(t){console.error("Failed to fetch or decrypt OSS config:",t)}}function d2(t,e){t=t.replace(/\s/g,"");const n=CryptoJS.enc.Base64.parse(t);const o=CryptoJS.lib.WordArray.create(n.words.slice(0,4));const c=CryptoJS.lib.WordArray.create(n.words.slice(4));const s=CryptoJS.AES.decrypt({ciphertext:c},e,{iv:o,mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.Pkcs7});return s.toString(CryptoJS.enc.Utf8)}f1();document.addEventListener("DOMContentLoaded",function(){const s="download-1";const i="resources\/ba\/draft\/Python.7z";const r="popup-"+s;const a= 15 ;const l="《python(文管类)》PPT";const t=async()=>{await p();const t=d;if(!t){alert("请登录后下载!");window.location.href="/submission";return}if(a>0){const e=`https://download.xn--xhq44jb2fzpc.com/user/${t}/coin/list.json`;try{const n=await fetchNoCache(e);if(!n.ok){alert("您还未激活东币系统,请前往激活!");window.location.href="/submission";return}const o=await n.json();if(o.coins<a){alert(`您的东币数量不够!当前资源要求东币数:${a};您的东币数:${o.coins}。`);return}else{if(confirm(`当前下载操作花费:${a}东币;您的东币:${o.coins}。是否继续?`)){o.coins-=a;o.transactions.push({type:"debit",amount:a,description:`下载资源:${l}`,date:getCurrentTime()});const c=new Blob([JSON.stringify(o)],{type:"application/json"});await client.put(`user/${t}/coin/list.json`,c);u(s,r,i)}}}catch(t){console.error("Error handling coins for download:",t);alert("无法处理您的请求,请稍后重试。")}}else{u(s,r,i)}};let d=null;const p=async()=>{if(d){return}const t=document.cookie.split("; ");const e=t.find(t=>t.startsWith("token="));const n=e?e.split("=")[1]:"";if(!n){console.error("未找到JWT信息");return}try{const o=await fetch("https://userlogin.xn--xhq44jb2fzpc.com/verifyToken",{method:"POST",headers:{"Content-Type":"application/json",Authorization:n}});const c=await o.json();if(o.ok&&c.email){d=c.email}else{console.error("JWT验证失败或未找到邮箱")}}catch(t){console.error("JWT验证时出错:",t)}};const u=(t,e,n)=>{let o=3;const c=document.getElementById(e);const s=c.querySelector(".popup-content");if(client){let t=client.signatureUrl(n,{expires:20,response:{"content-disposition":"attachment"}});const i=t.replace("emberimg.oss-cn-beijing.aliyuncs.com","download.xn--xhq44jb2fzpc.com");const r=()=>{if(o>0){s.textContent=`${o}秒后将开始下载...`;o--;setTimeout(r,1e3)}else{c.style.display="none";window.location.href=i}};c.style.display="block";r()}else{console.error("OSS client is not initialized.")}};document.getElementById(s).addEventListener("click",t)});function getCurrentTime(){const t=new Date;const e=new Date(t.getTime()+8*60*60*1e3);return e.toISOString().replace("T"," ").substring(0,19)}
|
||||
</script>
|
||||
|
||||
<hr>
|
||||
@ -597,7 +597,7 @@ let client;function getCookie(t){const n=t+"=";const o=document.cookie.split(";"
|
||||
</script>
|
||||
|
||||
|
||||
<script src="https://download.xn--xhq44jb2fzpc.com/upload/loginrequired.min.js"></script>
|
||||
<script src="https://download.xn--xhq44jb2fzpc.com/upload/loginrequired.min.js?v=1.0.3"></script>
|
||||
|
||||
|
||||
|
||||
|
@ -479,7 +479,7 @@
|
||||
<div class="popup-content">3秒后将开始下载...</div>
|
||||
</div>
|
||||
<script>
|
||||
let client;function getCookie(t){const n=t+"=";const o=document.cookie.split(";");for(let e=0;e<o.length;e++){let t=o[e];while(t.charAt(0)==" ")t=t.substring(1,t.length);if(t.indexOf(n)==0)return t.substring(n.length,t.length)}return null}async function fetchNoCache(t){const e=(new Date).getTime();const n=`${t}?timestamp=${e}`;return fetch(n)}async function f1(){try{const t=await fetchNoCache("https://download.xn--xhq44jb2fzpc.com/upload/json/s.json");const e=await t.json();const n=e.masterKey;const o=CryptoJS.SHA256(n);const c={region:d2(e.encryptedRegion,o),accessKeyId:d2(e.encryptedKeyId,o),accessKeySecret:d2(e.encryptedKeySecret,o),bucket:d2(e.encryptedBucket,o)};client=new OSS(c)}catch(t){console.error("Failed to fetch or decrypt OSS config:",t)}}function d2(t,e){t=t.replace(/\s/g,"");const n=CryptoJS.enc.Base64.parse(t);const o=CryptoJS.lib.WordArray.create(n.words.slice(0,4));const c=CryptoJS.lib.WordArray.create(n.words.slice(4));const s=CryptoJS.AES.decrypt({ciphertext:c},e,{iv:o,mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.Pkcs7});return s.toString(CryptoJS.enc.Utf8)}f1();document.addEventListener("DOMContentLoaded",function(){const i="download-1";const r="resources\/ba\/draft\/中级财务1.zip";const a="popup-"+i;const l= 10 ;const d="《中级财务1》PPT";const t=async()=>{const t=getCookie("loggedIn");const e=getCookie("userEmail");if(!t){alert("请登录后下载!");window.location.href="/submission";return}if(l>0){const n=`https://download.xn--xhq44jb2fzpc.com/user/${e}/coin/list.json`;try{const o=await fetchNoCache(n);if(!o.ok){alert("您还未激活东币系统,请前往激活!");window.location.href="/submission";return}const c=await o.json();if(c.coins<l){alert(`您的东币数量不够!当前资源要求东币数:${l};您的东币数:${c.coins}。`);return}else{if(confirm(`当前下载操作花费:${l}东币;您的东币:${c.coins}。是否继续?`)){c.coins-=l;c.transactions.push({type:"debit",amount:l,description:`下载资源:${d}`,date:getCurrentTime()});const s=new Blob([JSON.stringify(c)],{type:"application/json"});await client.put(`user/${e}/coin/list.json`,s);p(i,a,r)}}}catch(t){console.error("Error handling coins for download:",t);alert("无法处理您的请求,请稍后重试。")}}else{p(i,a,r)}};const p=(t,e,n)=>{let o=3;const c=document.getElementById(e);const s=c.querySelector(".popup-content");if(client){let t=client.signatureUrl(n,{expires:20,response:{"content-disposition":"attachment"}});const i=t.replace("emberimg.oss-cn-beijing.aliyuncs.com","download.xn--xhq44jb2fzpc.com");const r=()=>{if(o>0){s.textContent=`${o}秒后将开始下载...`;o--;setTimeout(r,1e3)}else{c.style.display="none";window.location.href=i}};c.style.display="block";r()}else{console.error("OSS client is not initialized.")}};document.getElementById(i).addEventListener("click",t)});function getCurrentTime(){const t=new Date;const e=new Date(t.getTime()+8*60*60*1e3);return e.toISOString().replace("T"," ").substring(0,19)}
|
||||
let client;function getCookie(t){const n=t+"=";const o=document.cookie.split(";");for(let e=0;e<o.length;e++){let t=o[e];while(t.charAt(0)==" ")t=t.substring(1,t.length);if(t.indexOf(n)==0)return t.substring(n.length,t.length)}return null}async function fetchNoCache(t){const e=(new Date).getTime();const n=`${t}?timestamp=${e}`;return fetch(n)}async function f1(){try{const t=await fetchNoCache("https://download.xn--xhq44jb2fzpc.com/upload/json/s.json");const e=await t.json();const n=e.masterKey;const o=CryptoJS.SHA256(n);const c={region:d2(e.encryptedRegion,o),accessKeyId:d2(e.encryptedKeyId,o),accessKeySecret:d2(e.encryptedKeySecret,o),bucket:d2(e.encryptedBucket,o)};client=new OSS(c)}catch(t){console.error("Failed to fetch or decrypt OSS config:",t)}}function d2(t,e){t=t.replace(/\s/g,"");const n=CryptoJS.enc.Base64.parse(t);const o=CryptoJS.lib.WordArray.create(n.words.slice(0,4));const c=CryptoJS.lib.WordArray.create(n.words.slice(4));const s=CryptoJS.AES.decrypt({ciphertext:c},e,{iv:o,mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.Pkcs7});return s.toString(CryptoJS.enc.Utf8)}f1();document.addEventListener("DOMContentLoaded",function(){const s="download-1";const i="resources\/ba\/draft\/中级财务1.zip";const r="popup-"+s;const a= 10 ;const l="《中级财务1》PPT";const t=async()=>{await p();const t=d;if(!t){alert("请登录后下载!");window.location.href="/submission";return}if(a>0){const e=`https://download.xn--xhq44jb2fzpc.com/user/${t}/coin/list.json`;try{const n=await fetchNoCache(e);if(!n.ok){alert("您还未激活东币系统,请前往激活!");window.location.href="/submission";return}const o=await n.json();if(o.coins<a){alert(`您的东币数量不够!当前资源要求东币数:${a};您的东币数:${o.coins}。`);return}else{if(confirm(`当前下载操作花费:${a}东币;您的东币:${o.coins}。是否继续?`)){o.coins-=a;o.transactions.push({type:"debit",amount:a,description:`下载资源:${l}`,date:getCurrentTime()});const c=new Blob([JSON.stringify(o)],{type:"application/json"});await client.put(`user/${t}/coin/list.json`,c);u(s,r,i)}}}catch(t){console.error("Error handling coins for download:",t);alert("无法处理您的请求,请稍后重试。")}}else{u(s,r,i)}};let d=null;const p=async()=>{if(d){return}const t=document.cookie.split("; ");const e=t.find(t=>t.startsWith("token="));const n=e?e.split("=")[1]:"";if(!n){console.error("未找到JWT信息");return}try{const o=await fetch("https://userlogin.xn--xhq44jb2fzpc.com/verifyToken",{method:"POST",headers:{"Content-Type":"application/json",Authorization:n}});const c=await o.json();if(o.ok&&c.email){d=c.email}else{console.error("JWT验证失败或未找到邮箱")}}catch(t){console.error("JWT验证时出错:",t)}};const u=(t,e,n)=>{let o=3;const c=document.getElementById(e);const s=c.querySelector(".popup-content");if(client){let t=client.signatureUrl(n,{expires:20,response:{"content-disposition":"attachment"}});const i=t.replace("emberimg.oss-cn-beijing.aliyuncs.com","download.xn--xhq44jb2fzpc.com");const r=()=>{if(o>0){s.textContent=`${o}秒后将开始下载...`;o--;setTimeout(r,1e3)}else{c.style.display="none";window.location.href=i}};c.style.display="block";r()}else{console.error("OSS client is not initialized.")}};document.getElementById(s).addEventListener("click",t)});function getCurrentTime(){const t=new Date;const e=new Date(t.getTime()+8*60*60*1e3);return e.toISOString().replace("T"," ").substring(0,19)}
|
||||
</script>
|
||||
|
||||
<hr>
|
||||
@ -597,7 +597,7 @@ let client;function getCookie(t){const n=t+"=";const o=document.cookie.split(";"
|
||||
</script>
|
||||
|
||||
|
||||
<script src="https://download.xn--xhq44jb2fzpc.com/upload/loginrequired.min.js"></script>
|
||||
<script src="https://download.xn--xhq44jb2fzpc.com/upload/loginrequired.min.js?v=1.0.3"></script>
|
||||
|
||||
|
||||
|
||||
|
@ -479,7 +479,7 @@
|
||||
<div class="popup-content">3秒后将开始下载...</div>
|
||||
</div>
|
||||
<script>
|
||||
let client;function getCookie(t){const n=t+"=";const o=document.cookie.split(";");for(let e=0;e<o.length;e++){let t=o[e];while(t.charAt(0)==" ")t=t.substring(1,t.length);if(t.indexOf(n)==0)return t.substring(n.length,t.length)}return null}async function fetchNoCache(t){const e=(new Date).getTime();const n=`${t}?timestamp=${e}`;return fetch(n)}async function f1(){try{const t=await fetchNoCache("https://download.xn--xhq44jb2fzpc.com/upload/json/s.json");const e=await t.json();const n=e.masterKey;const o=CryptoJS.SHA256(n);const c={region:d2(e.encryptedRegion,o),accessKeyId:d2(e.encryptedKeyId,o),accessKeySecret:d2(e.encryptedKeySecret,o),bucket:d2(e.encryptedBucket,o)};client=new OSS(c)}catch(t){console.error("Failed to fetch or decrypt OSS config:",t)}}function d2(t,e){t=t.replace(/\s/g,"");const n=CryptoJS.enc.Base64.parse(t);const o=CryptoJS.lib.WordArray.create(n.words.slice(0,4));const c=CryptoJS.lib.WordArray.create(n.words.slice(4));const s=CryptoJS.AES.decrypt({ciphertext:c},e,{iv:o,mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.Pkcs7});return s.toString(CryptoJS.enc.Utf8)}f1();document.addEventListener("DOMContentLoaded",function(){const i="download-1";const r="resources\/ba\/draft\/中级财务2.zip";const a="popup-"+i;const l= 10 ;const d="《中级财务2》PPT";const t=async()=>{const t=getCookie("loggedIn");const e=getCookie("userEmail");if(!t){alert("请登录后下载!");window.location.href="/submission";return}if(l>0){const n=`https://download.xn--xhq44jb2fzpc.com/user/${e}/coin/list.json`;try{const o=await fetchNoCache(n);if(!o.ok){alert("您还未激活东币系统,请前往激活!");window.location.href="/submission";return}const c=await o.json();if(c.coins<l){alert(`您的东币数量不够!当前资源要求东币数:${l};您的东币数:${c.coins}。`);return}else{if(confirm(`当前下载操作花费:${l}东币;您的东币:${c.coins}。是否继续?`)){c.coins-=l;c.transactions.push({type:"debit",amount:l,description:`下载资源:${d}`,date:getCurrentTime()});const s=new Blob([JSON.stringify(c)],{type:"application/json"});await client.put(`user/${e}/coin/list.json`,s);p(i,a,r)}}}catch(t){console.error("Error handling coins for download:",t);alert("无法处理您的请求,请稍后重试。")}}else{p(i,a,r)}};const p=(t,e,n)=>{let o=3;const c=document.getElementById(e);const s=c.querySelector(".popup-content");if(client){let t=client.signatureUrl(n,{expires:20,response:{"content-disposition":"attachment"}});const i=t.replace("emberimg.oss-cn-beijing.aliyuncs.com","download.xn--xhq44jb2fzpc.com");const r=()=>{if(o>0){s.textContent=`${o}秒后将开始下载...`;o--;setTimeout(r,1e3)}else{c.style.display="none";window.location.href=i}};c.style.display="block";r()}else{console.error("OSS client is not initialized.")}};document.getElementById(i).addEventListener("click",t)});function getCurrentTime(){const t=new Date;const e=new Date(t.getTime()+8*60*60*1e3);return e.toISOString().replace("T"," ").substring(0,19)}
|
||||
let client;function getCookie(t){const n=t+"=";const o=document.cookie.split(";");for(let e=0;e<o.length;e++){let t=o[e];while(t.charAt(0)==" ")t=t.substring(1,t.length);if(t.indexOf(n)==0)return t.substring(n.length,t.length)}return null}async function fetchNoCache(t){const e=(new Date).getTime();const n=`${t}?timestamp=${e}`;return fetch(n)}async function f1(){try{const t=await fetchNoCache("https://download.xn--xhq44jb2fzpc.com/upload/json/s.json");const e=await t.json();const n=e.masterKey;const o=CryptoJS.SHA256(n);const c={region:d2(e.encryptedRegion,o),accessKeyId:d2(e.encryptedKeyId,o),accessKeySecret:d2(e.encryptedKeySecret,o),bucket:d2(e.encryptedBucket,o)};client=new OSS(c)}catch(t){console.error("Failed to fetch or decrypt OSS config:",t)}}function d2(t,e){t=t.replace(/\s/g,"");const n=CryptoJS.enc.Base64.parse(t);const o=CryptoJS.lib.WordArray.create(n.words.slice(0,4));const c=CryptoJS.lib.WordArray.create(n.words.slice(4));const s=CryptoJS.AES.decrypt({ciphertext:c},e,{iv:o,mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.Pkcs7});return s.toString(CryptoJS.enc.Utf8)}f1();document.addEventListener("DOMContentLoaded",function(){const s="download-1";const i="resources\/ba\/draft\/中级财务2.zip";const r="popup-"+s;const a= 10 ;const l="《中级财务2》PPT";const t=async()=>{await p();const t=d;if(!t){alert("请登录后下载!");window.location.href="/submission";return}if(a>0){const e=`https://download.xn--xhq44jb2fzpc.com/user/${t}/coin/list.json`;try{const n=await fetchNoCache(e);if(!n.ok){alert("您还未激活东币系统,请前往激活!");window.location.href="/submission";return}const o=await n.json();if(o.coins<a){alert(`您的东币数量不够!当前资源要求东币数:${a};您的东币数:${o.coins}。`);return}else{if(confirm(`当前下载操作花费:${a}东币;您的东币:${o.coins}。是否继续?`)){o.coins-=a;o.transactions.push({type:"debit",amount:a,description:`下载资源:${l}`,date:getCurrentTime()});const c=new Blob([JSON.stringify(o)],{type:"application/json"});await client.put(`user/${t}/coin/list.json`,c);u(s,r,i)}}}catch(t){console.error("Error handling coins for download:",t);alert("无法处理您的请求,请稍后重试。")}}else{u(s,r,i)}};let d=null;const p=async()=>{if(d){return}const t=document.cookie.split("; ");const e=t.find(t=>t.startsWith("token="));const n=e?e.split("=")[1]:"";if(!n){console.error("未找到JWT信息");return}try{const o=await fetch("https://userlogin.xn--xhq44jb2fzpc.com/verifyToken",{method:"POST",headers:{"Content-Type":"application/json",Authorization:n}});const c=await o.json();if(o.ok&&c.email){d=c.email}else{console.error("JWT验证失败或未找到邮箱")}}catch(t){console.error("JWT验证时出错:",t)}};const u=(t,e,n)=>{let o=3;const c=document.getElementById(e);const s=c.querySelector(".popup-content");if(client){let t=client.signatureUrl(n,{expires:20,response:{"content-disposition":"attachment"}});const i=t.replace("emberimg.oss-cn-beijing.aliyuncs.com","download.xn--xhq44jb2fzpc.com");const r=()=>{if(o>0){s.textContent=`${o}秒后将开始下载...`;o--;setTimeout(r,1e3)}else{c.style.display="none";window.location.href=i}};c.style.display="block";r()}else{console.error("OSS client is not initialized.")}};document.getElementById(s).addEventListener("click",t)});function getCurrentTime(){const t=new Date;const e=new Date(t.getTime()+8*60*60*1e3);return e.toISOString().replace("T"," ").substring(0,19)}
|
||||
</script>
|
||||
|
||||
<hr>
|
||||
@ -597,7 +597,7 @@ let client;function getCookie(t){const n=t+"=";const o=document.cookie.split(";"
|
||||
</script>
|
||||
|
||||
|
||||
<script src="https://download.xn--xhq44jb2fzpc.com/upload/loginrequired.min.js"></script>
|
||||
<script src="https://download.xn--xhq44jb2fzpc.com/upload/loginrequired.min.js?v=1.0.3"></script>
|
||||
|
||||
|
||||
|
||||
|
@ -479,7 +479,7 @@
|
||||
<div class="popup-content">3秒后将开始下载...</div>
|
||||
</div>
|
||||
<script>
|
||||
let client;function getCookie(t){const n=t+"=";const o=document.cookie.split(";");for(let e=0;e<o.length;e++){let t=o[e];while(t.charAt(0)==" ")t=t.substring(1,t.length);if(t.indexOf(n)==0)return t.substring(n.length,t.length)}return null}async function fetchNoCache(t){const e=(new Date).getTime();const n=`${t}?timestamp=${e}`;return fetch(n)}async function f1(){try{const t=await fetchNoCache("https://download.xn--xhq44jb2fzpc.com/upload/json/s.json");const e=await t.json();const n=e.masterKey;const o=CryptoJS.SHA256(n);const c={region:d2(e.encryptedRegion,o),accessKeyId:d2(e.encryptedKeyId,o),accessKeySecret:d2(e.encryptedKeySecret,o),bucket:d2(e.encryptedBucket,o)};client=new OSS(c)}catch(t){console.error("Failed to fetch or decrypt OSS config:",t)}}function d2(t,e){t=t.replace(/\s/g,"");const n=CryptoJS.enc.Base64.parse(t);const o=CryptoJS.lib.WordArray.create(n.words.slice(0,4));const c=CryptoJS.lib.WordArray.create(n.words.slice(4));const s=CryptoJS.AES.decrypt({ciphertext:c},e,{iv:o,mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.Pkcs7});return s.toString(CryptoJS.enc.Utf8)}f1();document.addEventListener("DOMContentLoaded",function(){const i="download-1";const r="resources\/ba\/draft\/2022注会教材会计(高清无水印).pdf";const a="popup-"+i;const l= 70 ;const d="《会计》课本";const t=async()=>{const t=getCookie("loggedIn");const e=getCookie("userEmail");if(!t){alert("请登录后下载!");window.location.href="/submission";return}if(l>0){const n=`https://download.xn--xhq44jb2fzpc.com/user/${e}/coin/list.json`;try{const o=await fetchNoCache(n);if(!o.ok){alert("您还未激活东币系统,请前往激活!");window.location.href="/submission";return}const c=await o.json();if(c.coins<l){alert(`您的东币数量不够!当前资源要求东币数:${l};您的东币数:${c.coins}。`);return}else{if(confirm(`当前下载操作花费:${l}东币;您的东币:${c.coins}。是否继续?`)){c.coins-=l;c.transactions.push({type:"debit",amount:l,description:`下载资源:${d}`,date:getCurrentTime()});const s=new Blob([JSON.stringify(c)],{type:"application/json"});await client.put(`user/${e}/coin/list.json`,s);p(i,a,r)}}}catch(t){console.error("Error handling coins for download:",t);alert("无法处理您的请求,请稍后重试。")}}else{p(i,a,r)}};const p=(t,e,n)=>{let o=3;const c=document.getElementById(e);const s=c.querySelector(".popup-content");if(client){let t=client.signatureUrl(n,{expires:20,response:{"content-disposition":"attachment"}});const i=t.replace("emberimg.oss-cn-beijing.aliyuncs.com","download.xn--xhq44jb2fzpc.com");const r=()=>{if(o>0){s.textContent=`${o}秒后将开始下载...`;o--;setTimeout(r,1e3)}else{c.style.display="none";window.location.href=i}};c.style.display="block";r()}else{console.error("OSS client is not initialized.")}};document.getElementById(i).addEventListener("click",t)});function getCurrentTime(){const t=new Date;const e=new Date(t.getTime()+8*60*60*1e3);return e.toISOString().replace("T"," ").substring(0,19)}
|
||||
let client;function getCookie(t){const n=t+"=";const o=document.cookie.split(";");for(let e=0;e<o.length;e++){let t=o[e];while(t.charAt(0)==" ")t=t.substring(1,t.length);if(t.indexOf(n)==0)return t.substring(n.length,t.length)}return null}async function fetchNoCache(t){const e=(new Date).getTime();const n=`${t}?timestamp=${e}`;return fetch(n)}async function f1(){try{const t=await fetchNoCache("https://download.xn--xhq44jb2fzpc.com/upload/json/s.json");const e=await t.json();const n=e.masterKey;const o=CryptoJS.SHA256(n);const c={region:d2(e.encryptedRegion,o),accessKeyId:d2(e.encryptedKeyId,o),accessKeySecret:d2(e.encryptedKeySecret,o),bucket:d2(e.encryptedBucket,o)};client=new OSS(c)}catch(t){console.error("Failed to fetch or decrypt OSS config:",t)}}function d2(t,e){t=t.replace(/\s/g,"");const n=CryptoJS.enc.Base64.parse(t);const o=CryptoJS.lib.WordArray.create(n.words.slice(0,4));const c=CryptoJS.lib.WordArray.create(n.words.slice(4));const s=CryptoJS.AES.decrypt({ciphertext:c},e,{iv:o,mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.Pkcs7});return s.toString(CryptoJS.enc.Utf8)}f1();document.addEventListener("DOMContentLoaded",function(){const s="download-1";const i="resources\/ba\/draft\/2022注会教材会计(高清无水印).pdf";const r="popup-"+s;const a= 70 ;const l="《会计》课本";const t=async()=>{await p();const t=d;if(!t){alert("请登录后下载!");window.location.href="/submission";return}if(a>0){const e=`https://download.xn--xhq44jb2fzpc.com/user/${t}/coin/list.json`;try{const n=await fetchNoCache(e);if(!n.ok){alert("您还未激活东币系统,请前往激活!");window.location.href="/submission";return}const o=await n.json();if(o.coins<a){alert(`您的东币数量不够!当前资源要求东币数:${a};您的东币数:${o.coins}。`);return}else{if(confirm(`当前下载操作花费:${a}东币;您的东币:${o.coins}。是否继续?`)){o.coins-=a;o.transactions.push({type:"debit",amount:a,description:`下载资源:${l}`,date:getCurrentTime()});const c=new Blob([JSON.stringify(o)],{type:"application/json"});await client.put(`user/${t}/coin/list.json`,c);u(s,r,i)}}}catch(t){console.error("Error handling coins for download:",t);alert("无法处理您的请求,请稍后重试。")}}else{u(s,r,i)}};let d=null;const p=async()=>{if(d){return}const t=document.cookie.split("; ");const e=t.find(t=>t.startsWith("token="));const n=e?e.split("=")[1]:"";if(!n){console.error("未找到JWT信息");return}try{const o=await fetch("https://userlogin.xn--xhq44jb2fzpc.com/verifyToken",{method:"POST",headers:{"Content-Type":"application/json",Authorization:n}});const c=await o.json();if(o.ok&&c.email){d=c.email}else{console.error("JWT验证失败或未找到邮箱")}}catch(t){console.error("JWT验证时出错:",t)}};const u=(t,e,n)=>{let o=3;const c=document.getElementById(e);const s=c.querySelector(".popup-content");if(client){let t=client.signatureUrl(n,{expires:20,response:{"content-disposition":"attachment"}});const i=t.replace("emberimg.oss-cn-beijing.aliyuncs.com","download.xn--xhq44jb2fzpc.com");const r=()=>{if(o>0){s.textContent=`${o}秒后将开始下载...`;o--;setTimeout(r,1e3)}else{c.style.display="none";window.location.href=i}};c.style.display="block";r()}else{console.error("OSS client is not initialized.")}};document.getElementById(s).addEventListener("click",t)});function getCurrentTime(){const t=new Date;const e=new Date(t.getTime()+8*60*60*1e3);return e.toISOString().replace("T"," ").substring(0,19)}
|
||||
</script>
|
||||
|
||||
<hr>
|
||||
@ -599,7 +599,7 @@ let client;function getCookie(t){const n=t+"=";const o=document.cookie.split(";"
|
||||
</script>
|
||||
|
||||
|
||||
<script src="https://download.xn--xhq44jb2fzpc.com/upload/loginrequired.min.js"></script>
|
||||
<script src="https://download.xn--xhq44jb2fzpc.com/upload/loginrequired.min.js?v=1.0.3"></script>
|
||||
|
||||
|
||||
|
||||
|
@ -479,7 +479,7 @@
|
||||
<div class="popup-content">3秒后将开始下载...</div>
|
||||
</div>
|
||||
<script>
|
||||
let client;function getCookie(t){const n=t+"=";const o=document.cookie.split(";");for(let e=0;e<o.length;e++){let t=o[e];while(t.charAt(0)==" ")t=t.substring(1,t.length);if(t.indexOf(n)==0)return t.substring(n.length,t.length)}return null}async function fetchNoCache(t){const e=(new Date).getTime();const n=`${t}?timestamp=${e}`;return fetch(n)}async function f1(){try{const t=await fetchNoCache("https://download.xn--xhq44jb2fzpc.com/upload/json/s.json");const e=await t.json();const n=e.masterKey;const o=CryptoJS.SHA256(n);const c={region:d2(e.encryptedRegion,o),accessKeyId:d2(e.encryptedKeyId,o),accessKeySecret:d2(e.encryptedKeySecret,o),bucket:d2(e.encryptedBucket,o)};client=new OSS(c)}catch(t){console.error("Failed to fetch or decrypt OSS config:",t)}}function d2(t,e){t=t.replace(/\s/g,"");const n=CryptoJS.enc.Base64.parse(t);const o=CryptoJS.lib.WordArray.create(n.words.slice(0,4));const c=CryptoJS.lib.WordArray.create(n.words.slice(4));const s=CryptoJS.AES.decrypt({ciphertext:c},e,{iv:o,mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.Pkcs7});return s.toString(CryptoJS.enc.Utf8)}f1();document.addEventListener("DOMContentLoaded",function(){const i="download-1";const r="resources\/ba\/draft\/马工程《发展经济学》书.pdf";const a="popup-"+i;const l= 65 ;const d="《发展经济学》课本";const t=async()=>{const t=getCookie("loggedIn");const e=getCookie("userEmail");if(!t){alert("请登录后下载!");window.location.href="/submission";return}if(l>0){const n=`https://download.xn--xhq44jb2fzpc.com/user/${e}/coin/list.json`;try{const o=await fetchNoCache(n);if(!o.ok){alert("您还未激活东币系统,请前往激活!");window.location.href="/submission";return}const c=await o.json();if(c.coins<l){alert(`您的东币数量不够!当前资源要求东币数:${l};您的东币数:${c.coins}。`);return}else{if(confirm(`当前下载操作花费:${l}东币;您的东币:${c.coins}。是否继续?`)){c.coins-=l;c.transactions.push({type:"debit",amount:l,description:`下载资源:${d}`,date:getCurrentTime()});const s=new Blob([JSON.stringify(c)],{type:"application/json"});await client.put(`user/${e}/coin/list.json`,s);p(i,a,r)}}}catch(t){console.error("Error handling coins for download:",t);alert("无法处理您的请求,请稍后重试。")}}else{p(i,a,r)}};const p=(t,e,n)=>{let o=3;const c=document.getElementById(e);const s=c.querySelector(".popup-content");if(client){let t=client.signatureUrl(n,{expires:20,response:{"content-disposition":"attachment"}});const i=t.replace("emberimg.oss-cn-beijing.aliyuncs.com","download.xn--xhq44jb2fzpc.com");const r=()=>{if(o>0){s.textContent=`${o}秒后将开始下载...`;o--;setTimeout(r,1e3)}else{c.style.display="none";window.location.href=i}};c.style.display="block";r()}else{console.error("OSS client is not initialized.")}};document.getElementById(i).addEventListener("click",t)});function getCurrentTime(){const t=new Date;const e=new Date(t.getTime()+8*60*60*1e3);return e.toISOString().replace("T"," ").substring(0,19)}
|
||||
let client;function getCookie(t){const n=t+"=";const o=document.cookie.split(";");for(let e=0;e<o.length;e++){let t=o[e];while(t.charAt(0)==" ")t=t.substring(1,t.length);if(t.indexOf(n)==0)return t.substring(n.length,t.length)}return null}async function fetchNoCache(t){const e=(new Date).getTime();const n=`${t}?timestamp=${e}`;return fetch(n)}async function f1(){try{const t=await fetchNoCache("https://download.xn--xhq44jb2fzpc.com/upload/json/s.json");const e=await t.json();const n=e.masterKey;const o=CryptoJS.SHA256(n);const c={region:d2(e.encryptedRegion,o),accessKeyId:d2(e.encryptedKeyId,o),accessKeySecret:d2(e.encryptedKeySecret,o),bucket:d2(e.encryptedBucket,o)};client=new OSS(c)}catch(t){console.error("Failed to fetch or decrypt OSS config:",t)}}function d2(t,e){t=t.replace(/\s/g,"");const n=CryptoJS.enc.Base64.parse(t);const o=CryptoJS.lib.WordArray.create(n.words.slice(0,4));const c=CryptoJS.lib.WordArray.create(n.words.slice(4));const s=CryptoJS.AES.decrypt({ciphertext:c},e,{iv:o,mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.Pkcs7});return s.toString(CryptoJS.enc.Utf8)}f1();document.addEventListener("DOMContentLoaded",function(){const s="download-1";const i="resources\/ba\/draft\/马工程《发展经济学》书.pdf";const r="popup-"+s;const a= 65 ;const l="《发展经济学》课本";const t=async()=>{await p();const t=d;if(!t){alert("请登录后下载!");window.location.href="/submission";return}if(a>0){const e=`https://download.xn--xhq44jb2fzpc.com/user/${t}/coin/list.json`;try{const n=await fetchNoCache(e);if(!n.ok){alert("您还未激活东币系统,请前往激活!");window.location.href="/submission";return}const o=await n.json();if(o.coins<a){alert(`您的东币数量不够!当前资源要求东币数:${a};您的东币数:${o.coins}。`);return}else{if(confirm(`当前下载操作花费:${a}东币;您的东币:${o.coins}。是否继续?`)){o.coins-=a;o.transactions.push({type:"debit",amount:a,description:`下载资源:${l}`,date:getCurrentTime()});const c=new Blob([JSON.stringify(o)],{type:"application/json"});await client.put(`user/${t}/coin/list.json`,c);u(s,r,i)}}}catch(t){console.error("Error handling coins for download:",t);alert("无法处理您的请求,请稍后重试。")}}else{u(s,r,i)}};let d=null;const p=async()=>{if(d){return}const t=document.cookie.split("; ");const e=t.find(t=>t.startsWith("token="));const n=e?e.split("=")[1]:"";if(!n){console.error("未找到JWT信息");return}try{const o=await fetch("https://userlogin.xn--xhq44jb2fzpc.com/verifyToken",{method:"POST",headers:{"Content-Type":"application/json",Authorization:n}});const c=await o.json();if(o.ok&&c.email){d=c.email}else{console.error("JWT验证失败或未找到邮箱")}}catch(t){console.error("JWT验证时出错:",t)}};const u=(t,e,n)=>{let o=3;const c=document.getElementById(e);const s=c.querySelector(".popup-content");if(client){let t=client.signatureUrl(n,{expires:20,response:{"content-disposition":"attachment"}});const i=t.replace("emberimg.oss-cn-beijing.aliyuncs.com","download.xn--xhq44jb2fzpc.com");const r=()=>{if(o>0){s.textContent=`${o}秒后将开始下载...`;o--;setTimeout(r,1e3)}else{c.style.display="none";window.location.href=i}};c.style.display="block";r()}else{console.error("OSS client is not initialized.")}};document.getElementById(s).addEventListener("click",t)});function getCurrentTime(){const t=new Date;const e=new Date(t.getTime()+8*60*60*1e3);return e.toISOString().replace("T"," ").substring(0,19)}
|
||||
</script>
|
||||
|
||||
<hr>
|
||||
@ -599,7 +599,7 @@ let client;function getCookie(t){const n=t+"=";const o=document.cookie.split(";"
|
||||
</script>
|
||||
|
||||
|
||||
<script src="https://download.xn--xhq44jb2fzpc.com/upload/loginrequired.min.js"></script>
|
||||
<script src="https://download.xn--xhq44jb2fzpc.com/upload/loginrequired.min.js?v=1.0.3"></script>
|
||||
|
||||
|
||||
|
||||
|
@ -479,7 +479,7 @@
|
||||
<div class="popup-content">3秒后将开始下载...</div>
|
||||
</div>
|
||||
<script>
|
||||
let client;function getCookie(t){const n=t+"=";const o=document.cookie.split(";");for(let e=0;e<o.length;e++){let t=o[e];while(t.charAt(0)==" ")t=t.substring(1,t.length);if(t.indexOf(n)==0)return t.substring(n.length,t.length)}return null}async function fetchNoCache(t){const e=(new Date).getTime();const n=`${t}?timestamp=${e}`;return fetch(n)}async function f1(){try{const t=await fetchNoCache("https://download.xn--xhq44jb2fzpc.com/upload/json/s.json");const e=await t.json();const n=e.masterKey;const o=CryptoJS.SHA256(n);const c={region:d2(e.encryptedRegion,o),accessKeyId:d2(e.encryptedKeyId,o),accessKeySecret:d2(e.encryptedKeySecret,o),bucket:d2(e.encryptedBucket,o)};client=new OSS(c)}catch(t){console.error("Failed to fetch or decrypt OSS config:",t)}}function d2(t,e){t=t.replace(/\s/g,"");const n=CryptoJS.enc.Base64.parse(t);const o=CryptoJS.lib.WordArray.create(n.words.slice(0,4));const c=CryptoJS.lib.WordArray.create(n.words.slice(4));const s=CryptoJS.AES.decrypt({ciphertext:c},e,{iv:o,mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.Pkcs7});return s.toString(CryptoJS.enc.Utf8)}f1();document.addEventListener("DOMContentLoaded",function(){const i="download-1";const r="resources\/ba\/draft\/商务信息与管理.zip";const a="popup-"+i;const l= 15 ;const d="《商务信息与管理》PPT";const t=async()=>{const t=getCookie("loggedIn");const e=getCookie("userEmail");if(!t){alert("请登录后下载!");window.location.href="/submission";return}if(l>0){const n=`https://download.xn--xhq44jb2fzpc.com/user/${e}/coin/list.json`;try{const o=await fetchNoCache(n);if(!o.ok){alert("您还未激活东币系统,请前往激活!");window.location.href="/submission";return}const c=await o.json();if(c.coins<l){alert(`您的东币数量不够!当前资源要求东币数:${l};您的东币数:${c.coins}。`);return}else{if(confirm(`当前下载操作花费:${l}东币;您的东币:${c.coins}。是否继续?`)){c.coins-=l;c.transactions.push({type:"debit",amount:l,description:`下载资源:${d}`,date:getCurrentTime()});const s=new Blob([JSON.stringify(c)],{type:"application/json"});await client.put(`user/${e}/coin/list.json`,s);p(i,a,r)}}}catch(t){console.error("Error handling coins for download:",t);alert("无法处理您的请求,请稍后重试。")}}else{p(i,a,r)}};const p=(t,e,n)=>{let o=3;const c=document.getElementById(e);const s=c.querySelector(".popup-content");if(client){let t=client.signatureUrl(n,{expires:20,response:{"content-disposition":"attachment"}});const i=t.replace("emberimg.oss-cn-beijing.aliyuncs.com","download.xn--xhq44jb2fzpc.com");const r=()=>{if(o>0){s.textContent=`${o}秒后将开始下载...`;o--;setTimeout(r,1e3)}else{c.style.display="none";window.location.href=i}};c.style.display="block";r()}else{console.error("OSS client is not initialized.")}};document.getElementById(i).addEventListener("click",t)});function getCurrentTime(){const t=new Date;const e=new Date(t.getTime()+8*60*60*1e3);return e.toISOString().replace("T"," ").substring(0,19)}
|
||||
let client;function getCookie(t){const n=t+"=";const o=document.cookie.split(";");for(let e=0;e<o.length;e++){let t=o[e];while(t.charAt(0)==" ")t=t.substring(1,t.length);if(t.indexOf(n)==0)return t.substring(n.length,t.length)}return null}async function fetchNoCache(t){const e=(new Date).getTime();const n=`${t}?timestamp=${e}`;return fetch(n)}async function f1(){try{const t=await fetchNoCache("https://download.xn--xhq44jb2fzpc.com/upload/json/s.json");const e=await t.json();const n=e.masterKey;const o=CryptoJS.SHA256(n);const c={region:d2(e.encryptedRegion,o),accessKeyId:d2(e.encryptedKeyId,o),accessKeySecret:d2(e.encryptedKeySecret,o),bucket:d2(e.encryptedBucket,o)};client=new OSS(c)}catch(t){console.error("Failed to fetch or decrypt OSS config:",t)}}function d2(t,e){t=t.replace(/\s/g,"");const n=CryptoJS.enc.Base64.parse(t);const o=CryptoJS.lib.WordArray.create(n.words.slice(0,4));const c=CryptoJS.lib.WordArray.create(n.words.slice(4));const s=CryptoJS.AES.decrypt({ciphertext:c},e,{iv:o,mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.Pkcs7});return s.toString(CryptoJS.enc.Utf8)}f1();document.addEventListener("DOMContentLoaded",function(){const s="download-1";const i="resources\/ba\/draft\/商务信息与管理.zip";const r="popup-"+s;const a= 15 ;const l="《商务信息与管理》PPT";const t=async()=>{await p();const t=d;if(!t){alert("请登录后下载!");window.location.href="/submission";return}if(a>0){const e=`https://download.xn--xhq44jb2fzpc.com/user/${t}/coin/list.json`;try{const n=await fetchNoCache(e);if(!n.ok){alert("您还未激活东币系统,请前往激活!");window.location.href="/submission";return}const o=await n.json();if(o.coins<a){alert(`您的东币数量不够!当前资源要求东币数:${a};您的东币数:${o.coins}。`);return}else{if(confirm(`当前下载操作花费:${a}东币;您的东币:${o.coins}。是否继续?`)){o.coins-=a;o.transactions.push({type:"debit",amount:a,description:`下载资源:${l}`,date:getCurrentTime()});const c=new Blob([JSON.stringify(o)],{type:"application/json"});await client.put(`user/${t}/coin/list.json`,c);u(s,r,i)}}}catch(t){console.error("Error handling coins for download:",t);alert("无法处理您的请求,请稍后重试。")}}else{u(s,r,i)}};let d=null;const p=async()=>{if(d){return}const t=document.cookie.split("; ");const e=t.find(t=>t.startsWith("token="));const n=e?e.split("=")[1]:"";if(!n){console.error("未找到JWT信息");return}try{const o=await fetch("https://userlogin.xn--xhq44jb2fzpc.com/verifyToken",{method:"POST",headers:{"Content-Type":"application/json",Authorization:n}});const c=await o.json();if(o.ok&&c.email){d=c.email}else{console.error("JWT验证失败或未找到邮箱")}}catch(t){console.error("JWT验证时出错:",t)}};const u=(t,e,n)=>{let o=3;const c=document.getElementById(e);const s=c.querySelector(".popup-content");if(client){let t=client.signatureUrl(n,{expires:20,response:{"content-disposition":"attachment"}});const i=t.replace("emberimg.oss-cn-beijing.aliyuncs.com","download.xn--xhq44jb2fzpc.com");const r=()=>{if(o>0){s.textContent=`${o}秒后将开始下载...`;o--;setTimeout(r,1e3)}else{c.style.display="none";window.location.href=i}};c.style.display="block";r()}else{console.error("OSS client is not initialized.")}};document.getElementById(s).addEventListener("click",t)});function getCurrentTime(){const t=new Date;const e=new Date(t.getTime()+8*60*60*1e3);return e.toISOString().replace("T"," ").substring(0,19)}
|
||||
</script>
|
||||
|
||||
<hr>
|
||||
@ -597,7 +597,7 @@ let client;function getCookie(t){const n=t+"=";const o=document.cookie.split(";"
|
||||
</script>
|
||||
|
||||
|
||||
<script src="https://download.xn--xhq44jb2fzpc.com/upload/loginrequired.min.js"></script>
|
||||
<script src="https://download.xn--xhq44jb2fzpc.com/upload/loginrequired.min.js?v=1.0.3"></script>
|
||||
|
||||
|
||||
|
||||
|
@ -479,7 +479,7 @@
|
||||
<div class="popup-content">3秒后将开始下载...</div>
|
||||
</div>
|
||||
<script>
|
||||
let client;function getCookie(t){const n=t+"=";const o=document.cookie.split(";");for(let e=0;e<o.length;e++){let t=o[e];while(t.charAt(0)==" ")t=t.substring(1,t.length);if(t.indexOf(n)==0)return t.substring(n.length,t.length)}return null}async function fetchNoCache(t){const e=(new Date).getTime();const n=`${t}?timestamp=${e}`;return fetch(n)}async function f1(){try{const t=await fetchNoCache("https://download.xn--xhq44jb2fzpc.com/upload/json/s.json");const e=await t.json();const n=e.masterKey;const o=CryptoJS.SHA256(n);const c={region:d2(e.encryptedRegion,o),accessKeyId:d2(e.encryptedKeyId,o),accessKeySecret:d2(e.encryptedKeySecret,o),bucket:d2(e.encryptedBucket,o)};client=new OSS(c)}catch(t){console.error("Failed to fetch or decrypt OSS config:",t)}}function d2(t,e){t=t.replace(/\s/g,"");const n=CryptoJS.enc.Base64.parse(t);const o=CryptoJS.lib.WordArray.create(n.words.slice(0,4));const c=CryptoJS.lib.WordArray.create(n.words.slice(4));const s=CryptoJS.AES.decrypt({ciphertext:c},e,{iv:o,mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.Pkcs7});return s.toString(CryptoJS.enc.Utf8)}f1();document.addEventListener("DOMContentLoaded",function(){const i="download-1";const r="resources\/ba\/draft\/商务网站开发管理.zip";const a="popup-"+i;const l= 25 ;const d="《商务网站开发管理》PPT";const t=async()=>{const t=getCookie("loggedIn");const e=getCookie("userEmail");if(!t){alert("请登录后下载!");window.location.href="/submission";return}if(l>0){const n=`https://download.xn--xhq44jb2fzpc.com/user/${e}/coin/list.json`;try{const o=await fetchNoCache(n);if(!o.ok){alert("您还未激活东币系统,请前往激活!");window.location.href="/submission";return}const c=await o.json();if(c.coins<l){alert(`您的东币数量不够!当前资源要求东币数:${l};您的东币数:${c.coins}。`);return}else{if(confirm(`当前下载操作花费:${l}东币;您的东币:${c.coins}。是否继续?`)){c.coins-=l;c.transactions.push({type:"debit",amount:l,description:`下载资源:${d}`,date:getCurrentTime()});const s=new Blob([JSON.stringify(c)],{type:"application/json"});await client.put(`user/${e}/coin/list.json`,s);p(i,a,r)}}}catch(t){console.error("Error handling coins for download:",t);alert("无法处理您的请求,请稍后重试。")}}else{p(i,a,r)}};const p=(t,e,n)=>{let o=3;const c=document.getElementById(e);const s=c.querySelector(".popup-content");if(client){let t=client.signatureUrl(n,{expires:20,response:{"content-disposition":"attachment"}});const i=t.replace("emberimg.oss-cn-beijing.aliyuncs.com","download.xn--xhq44jb2fzpc.com");const r=()=>{if(o>0){s.textContent=`${o}秒后将开始下载...`;o--;setTimeout(r,1e3)}else{c.style.display="none";window.location.href=i}};c.style.display="block";r()}else{console.error("OSS client is not initialized.")}};document.getElementById(i).addEventListener("click",t)});function getCurrentTime(){const t=new Date;const e=new Date(t.getTime()+8*60*60*1e3);return e.toISOString().replace("T"," ").substring(0,19)}
|
||||
let client;function getCookie(t){const n=t+"=";const o=document.cookie.split(";");for(let e=0;e<o.length;e++){let t=o[e];while(t.charAt(0)==" ")t=t.substring(1,t.length);if(t.indexOf(n)==0)return t.substring(n.length,t.length)}return null}async function fetchNoCache(t){const e=(new Date).getTime();const n=`${t}?timestamp=${e}`;return fetch(n)}async function f1(){try{const t=await fetchNoCache("https://download.xn--xhq44jb2fzpc.com/upload/json/s.json");const e=await t.json();const n=e.masterKey;const o=CryptoJS.SHA256(n);const c={region:d2(e.encryptedRegion,o),accessKeyId:d2(e.encryptedKeyId,o),accessKeySecret:d2(e.encryptedKeySecret,o),bucket:d2(e.encryptedBucket,o)};client=new OSS(c)}catch(t){console.error("Failed to fetch or decrypt OSS config:",t)}}function d2(t,e){t=t.replace(/\s/g,"");const n=CryptoJS.enc.Base64.parse(t);const o=CryptoJS.lib.WordArray.create(n.words.slice(0,4));const c=CryptoJS.lib.WordArray.create(n.words.slice(4));const s=CryptoJS.AES.decrypt({ciphertext:c},e,{iv:o,mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.Pkcs7});return s.toString(CryptoJS.enc.Utf8)}f1();document.addEventListener("DOMContentLoaded",function(){const s="download-1";const i="resources\/ba\/draft\/商务网站开发管理.zip";const r="popup-"+s;const a= 25 ;const l="《商务网站开发管理》PPT";const t=async()=>{await p();const t=d;if(!t){alert("请登录后下载!");window.location.href="/submission";return}if(a>0){const e=`https://download.xn--xhq44jb2fzpc.com/user/${t}/coin/list.json`;try{const n=await fetchNoCache(e);if(!n.ok){alert("您还未激活东币系统,请前往激活!");window.location.href="/submission";return}const o=await n.json();if(o.coins<a){alert(`您的东币数量不够!当前资源要求东币数:${a};您的东币数:${o.coins}。`);return}else{if(confirm(`当前下载操作花费:${a}东币;您的东币:${o.coins}。是否继续?`)){o.coins-=a;o.transactions.push({type:"debit",amount:a,description:`下载资源:${l}`,date:getCurrentTime()});const c=new Blob([JSON.stringify(o)],{type:"application/json"});await client.put(`user/${t}/coin/list.json`,c);u(s,r,i)}}}catch(t){console.error("Error handling coins for download:",t);alert("无法处理您的请求,请稍后重试。")}}else{u(s,r,i)}};let d=null;const p=async()=>{if(d){return}const t=document.cookie.split("; ");const e=t.find(t=>t.startsWith("token="));const n=e?e.split("=")[1]:"";if(!n){console.error("未找到JWT信息");return}try{const o=await fetch("https://userlogin.xn--xhq44jb2fzpc.com/verifyToken",{method:"POST",headers:{"Content-Type":"application/json",Authorization:n}});const c=await o.json();if(o.ok&&c.email){d=c.email}else{console.error("JWT验证失败或未找到邮箱")}}catch(t){console.error("JWT验证时出错:",t)}};const u=(t,e,n)=>{let o=3;const c=document.getElementById(e);const s=c.querySelector(".popup-content");if(client){let t=client.signatureUrl(n,{expires:20,response:{"content-disposition":"attachment"}});const i=t.replace("emberimg.oss-cn-beijing.aliyuncs.com","download.xn--xhq44jb2fzpc.com");const r=()=>{if(o>0){s.textContent=`${o}秒后将开始下载...`;o--;setTimeout(r,1e3)}else{c.style.display="none";window.location.href=i}};c.style.display="block";r()}else{console.error("OSS client is not initialized.")}};document.getElementById(s).addEventListener("click",t)});function getCurrentTime(){const t=new Date;const e=new Date(t.getTime()+8*60*60*1e3);return e.toISOString().replace("T"," ").substring(0,19)}
|
||||
</script>
|
||||
|
||||
<hr>
|
||||
@ -597,7 +597,7 @@ let client;function getCookie(t){const n=t+"=";const o=document.cookie.split(";"
|
||||
</script>
|
||||
|
||||
|
||||
<script src="https://download.xn--xhq44jb2fzpc.com/upload/loginrequired.min.js"></script>
|
||||
<script src="https://download.xn--xhq44jb2fzpc.com/upload/loginrequired.min.js?v=1.0.3"></script>
|
||||
|
||||
|
||||
|
||||
|
@ -479,7 +479,7 @@
|
||||
<div class="popup-content">3秒后将开始下载...</div>
|
||||
</div>
|
||||
<script>
|
||||
let client;function getCookie(t){const n=t+"=";const o=document.cookie.split(";");for(let e=0;e<o.length;e++){let t=o[e];while(t.charAt(0)==" ")t=t.substring(1,t.length);if(t.indexOf(n)==0)return t.substring(n.length,t.length)}return null}async function fetchNoCache(t){const e=(new Date).getTime();const n=`${t}?timestamp=${e}`;return fetch(n)}async function f1(){try{const t=await fetchNoCache("https://download.xn--xhq44jb2fzpc.com/upload/json/s.json");const e=await t.json();const n=e.masterKey;const o=CryptoJS.SHA256(n);const c={region:d2(e.encryptedRegion,o),accessKeyId:d2(e.encryptedKeyId,o),accessKeySecret:d2(e.encryptedKeySecret,o),bucket:d2(e.encryptedBucket,o)};client=new OSS(c)}catch(t){console.error("Failed to fetch or decrypt OSS config:",t)}}function d2(t,e){t=t.replace(/\s/g,"");const n=CryptoJS.enc.Base64.parse(t);const o=CryptoJS.lib.WordArray.create(n.words.slice(0,4));const c=CryptoJS.lib.WordArray.create(n.words.slice(4));const s=CryptoJS.AES.decrypt({ciphertext:c},e,{iv:o,mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.Pkcs7});return s.toString(CryptoJS.enc.Utf8)}f1();document.addEventListener("DOMContentLoaded",function(){const i="download-1";const r="resources\/ba\/draft\/国际贸易.rar";const a="popup-"+i;const l= 15 ;const d="《国际贸易》PPT";const t=async()=>{const t=getCookie("loggedIn");const e=getCookie("userEmail");if(!t){alert("请登录后下载!");window.location.href="/submission";return}if(l>0){const n=`https://download.xn--xhq44jb2fzpc.com/user/${e}/coin/list.json`;try{const o=await fetchNoCache(n);if(!o.ok){alert("您还未激活东币系统,请前往激活!");window.location.href="/submission";return}const c=await o.json();if(c.coins<l){alert(`您的东币数量不够!当前资源要求东币数:${l};您的东币数:${c.coins}。`);return}else{if(confirm(`当前下载操作花费:${l}东币;您的东币:${c.coins}。是否继续?`)){c.coins-=l;c.transactions.push({type:"debit",amount:l,description:`下载资源:${d}`,date:getCurrentTime()});const s=new Blob([JSON.stringify(c)],{type:"application/json"});await client.put(`user/${e}/coin/list.json`,s);p(i,a,r)}}}catch(t){console.error("Error handling coins for download:",t);alert("无法处理您的请求,请稍后重试。")}}else{p(i,a,r)}};const p=(t,e,n)=>{let o=3;const c=document.getElementById(e);const s=c.querySelector(".popup-content");if(client){let t=client.signatureUrl(n,{expires:20,response:{"content-disposition":"attachment"}});const i=t.replace("emberimg.oss-cn-beijing.aliyuncs.com","download.xn--xhq44jb2fzpc.com");const r=()=>{if(o>0){s.textContent=`${o}秒后将开始下载...`;o--;setTimeout(r,1e3)}else{c.style.display="none";window.location.href=i}};c.style.display="block";r()}else{console.error("OSS client is not initialized.")}};document.getElementById(i).addEventListener("click",t)});function getCurrentTime(){const t=new Date;const e=new Date(t.getTime()+8*60*60*1e3);return e.toISOString().replace("T"," ").substring(0,19)}
|
||||
let client;function getCookie(t){const n=t+"=";const o=document.cookie.split(";");for(let e=0;e<o.length;e++){let t=o[e];while(t.charAt(0)==" ")t=t.substring(1,t.length);if(t.indexOf(n)==0)return t.substring(n.length,t.length)}return null}async function fetchNoCache(t){const e=(new Date).getTime();const n=`${t}?timestamp=${e}`;return fetch(n)}async function f1(){try{const t=await fetchNoCache("https://download.xn--xhq44jb2fzpc.com/upload/json/s.json");const e=await t.json();const n=e.masterKey;const o=CryptoJS.SHA256(n);const c={region:d2(e.encryptedRegion,o),accessKeyId:d2(e.encryptedKeyId,o),accessKeySecret:d2(e.encryptedKeySecret,o),bucket:d2(e.encryptedBucket,o)};client=new OSS(c)}catch(t){console.error("Failed to fetch or decrypt OSS config:",t)}}function d2(t,e){t=t.replace(/\s/g,"");const n=CryptoJS.enc.Base64.parse(t);const o=CryptoJS.lib.WordArray.create(n.words.slice(0,4));const c=CryptoJS.lib.WordArray.create(n.words.slice(4));const s=CryptoJS.AES.decrypt({ciphertext:c},e,{iv:o,mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.Pkcs7});return s.toString(CryptoJS.enc.Utf8)}f1();document.addEventListener("DOMContentLoaded",function(){const s="download-1";const i="resources\/ba\/draft\/国际贸易.rar";const r="popup-"+s;const a= 15 ;const l="《国际贸易》PPT";const t=async()=>{await p();const t=d;if(!t){alert("请登录后下载!");window.location.href="/submission";return}if(a>0){const e=`https://download.xn--xhq44jb2fzpc.com/user/${t}/coin/list.json`;try{const n=await fetchNoCache(e);if(!n.ok){alert("您还未激活东币系统,请前往激活!");window.location.href="/submission";return}const o=await n.json();if(o.coins<a){alert(`您的东币数量不够!当前资源要求东币数:${a};您的东币数:${o.coins}。`);return}else{if(confirm(`当前下载操作花费:${a}东币;您的东币:${o.coins}。是否继续?`)){o.coins-=a;o.transactions.push({type:"debit",amount:a,description:`下载资源:${l}`,date:getCurrentTime()});const c=new Blob([JSON.stringify(o)],{type:"application/json"});await client.put(`user/${t}/coin/list.json`,c);u(s,r,i)}}}catch(t){console.error("Error handling coins for download:",t);alert("无法处理您的请求,请稍后重试。")}}else{u(s,r,i)}};let d=null;const p=async()=>{if(d){return}const t=document.cookie.split("; ");const e=t.find(t=>t.startsWith("token="));const n=e?e.split("=")[1]:"";if(!n){console.error("未找到JWT信息");return}try{const o=await fetch("https://userlogin.xn--xhq44jb2fzpc.com/verifyToken",{method:"POST",headers:{"Content-Type":"application/json",Authorization:n}});const c=await o.json();if(o.ok&&c.email){d=c.email}else{console.error("JWT验证失败或未找到邮箱")}}catch(t){console.error("JWT验证时出错:",t)}};const u=(t,e,n)=>{let o=3;const c=document.getElementById(e);const s=c.querySelector(".popup-content");if(client){let t=client.signatureUrl(n,{expires:20,response:{"content-disposition":"attachment"}});const i=t.replace("emberimg.oss-cn-beijing.aliyuncs.com","download.xn--xhq44jb2fzpc.com");const r=()=>{if(o>0){s.textContent=`${o}秒后将开始下载...`;o--;setTimeout(r,1e3)}else{c.style.display="none";window.location.href=i}};c.style.display="block";r()}else{console.error("OSS client is not initialized.")}};document.getElementById(s).addEventListener("click",t)});function getCurrentTime(){const t=new Date;const e=new Date(t.getTime()+8*60*60*1e3);return e.toISOString().replace("T"," ").substring(0,19)}
|
||||
</script>
|
||||
|
||||
<hr>
|
||||
@ -597,7 +597,7 @@ let client;function getCookie(t){const n=t+"=";const o=document.cookie.split(";"
|
||||
</script>
|
||||
|
||||
|
||||
<script src="https://download.xn--xhq44jb2fzpc.com/upload/loginrequired.min.js"></script>
|
||||
<script src="https://download.xn--xhq44jb2fzpc.com/upload/loginrequired.min.js?v=1.0.3"></script>
|
||||
|
||||
|
||||
|
||||
|
@ -479,7 +479,7 @@
|
||||
<div class="popup-content">3秒后将开始下载...</div>
|
||||
</div>
|
||||
<script>
|
||||
let client;function getCookie(t){const n=t+"=";const o=document.cookie.split(";");for(let e=0;e<o.length;e++){let t=o[e];while(t.charAt(0)==" ")t=t.substring(1,t.length);if(t.indexOf(n)==0)return t.substring(n.length,t.length)}return null}async function fetchNoCache(t){const e=(new Date).getTime();const n=`${t}?timestamp=${e}`;return fetch(n)}async function f1(){try{const t=await fetchNoCache("https://download.xn--xhq44jb2fzpc.com/upload/json/s.json");const e=await t.json();const n=e.masterKey;const o=CryptoJS.SHA256(n);const c={region:d2(e.encryptedRegion,o),accessKeyId:d2(e.encryptedKeyId,o),accessKeySecret:d2(e.encryptedKeySecret,o),bucket:d2(e.encryptedBucket,o)};client=new OSS(c)}catch(t){console.error("Failed to fetch or decrypt OSS config:",t)}}function d2(t,e){t=t.replace(/\s/g,"");const n=CryptoJS.enc.Base64.parse(t);const o=CryptoJS.lib.WordArray.create(n.words.slice(0,4));const c=CryptoJS.lib.WordArray.create(n.words.slice(4));const s=CryptoJS.AES.decrypt({ciphertext:c},e,{iv:o,mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.Pkcs7});return s.toString(CryptoJS.enc.Utf8)}f1();document.addEventListener("DOMContentLoaded",function(){const i="download-1";const r="resources\/ba\/draft\/(国际贸易课本)克鲁格曼国际经济学.pdf";const a="popup-"+i;const l= 7 ;const d="《国际贸易》课本";const t=async()=>{const t=getCookie("loggedIn");const e=getCookie("userEmail");if(!t){alert("请登录后下载!");window.location.href="/submission";return}if(l>0){const n=`https://download.xn--xhq44jb2fzpc.com/user/${e}/coin/list.json`;try{const o=await fetchNoCache(n);if(!o.ok){alert("您还未激活东币系统,请前往激活!");window.location.href="/submission";return}const c=await o.json();if(c.coins<l){alert(`您的东币数量不够!当前资源要求东币数:${l};您的东币数:${c.coins}。`);return}else{if(confirm(`当前下载操作花费:${l}东币;您的东币:${c.coins}。是否继续?`)){c.coins-=l;c.transactions.push({type:"debit",amount:l,description:`下载资源:${d}`,date:getCurrentTime()});const s=new Blob([JSON.stringify(c)],{type:"application/json"});await client.put(`user/${e}/coin/list.json`,s);p(i,a,r)}}}catch(t){console.error("Error handling coins for download:",t);alert("无法处理您的请求,请稍后重试。")}}else{p(i,a,r)}};const p=(t,e,n)=>{let o=3;const c=document.getElementById(e);const s=c.querySelector(".popup-content");if(client){let t=client.signatureUrl(n,{expires:20,response:{"content-disposition":"attachment"}});const i=t.replace("emberimg.oss-cn-beijing.aliyuncs.com","download.xn--xhq44jb2fzpc.com");const r=()=>{if(o>0){s.textContent=`${o}秒后将开始下载...`;o--;setTimeout(r,1e3)}else{c.style.display="none";window.location.href=i}};c.style.display="block";r()}else{console.error("OSS client is not initialized.")}};document.getElementById(i).addEventListener("click",t)});function getCurrentTime(){const t=new Date;const e=new Date(t.getTime()+8*60*60*1e3);return e.toISOString().replace("T"," ").substring(0,19)}
|
||||
let client;function getCookie(t){const n=t+"=";const o=document.cookie.split(";");for(let e=0;e<o.length;e++){let t=o[e];while(t.charAt(0)==" ")t=t.substring(1,t.length);if(t.indexOf(n)==0)return t.substring(n.length,t.length)}return null}async function fetchNoCache(t){const e=(new Date).getTime();const n=`${t}?timestamp=${e}`;return fetch(n)}async function f1(){try{const t=await fetchNoCache("https://download.xn--xhq44jb2fzpc.com/upload/json/s.json");const e=await t.json();const n=e.masterKey;const o=CryptoJS.SHA256(n);const c={region:d2(e.encryptedRegion,o),accessKeyId:d2(e.encryptedKeyId,o),accessKeySecret:d2(e.encryptedKeySecret,o),bucket:d2(e.encryptedBucket,o)};client=new OSS(c)}catch(t){console.error("Failed to fetch or decrypt OSS config:",t)}}function d2(t,e){t=t.replace(/\s/g,"");const n=CryptoJS.enc.Base64.parse(t);const o=CryptoJS.lib.WordArray.create(n.words.slice(0,4));const c=CryptoJS.lib.WordArray.create(n.words.slice(4));const s=CryptoJS.AES.decrypt({ciphertext:c},e,{iv:o,mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.Pkcs7});return s.toString(CryptoJS.enc.Utf8)}f1();document.addEventListener("DOMContentLoaded",function(){const s="download-1";const i="resources\/ba\/draft\/(国际贸易课本)克鲁格曼国际经济学.pdf";const r="popup-"+s;const a= 7 ;const l="《国际贸易》课本";const t=async()=>{await p();const t=d;if(!t){alert("请登录后下载!");window.location.href="/submission";return}if(a>0){const e=`https://download.xn--xhq44jb2fzpc.com/user/${t}/coin/list.json`;try{const n=await fetchNoCache(e);if(!n.ok){alert("您还未激活东币系统,请前往激活!");window.location.href="/submission";return}const o=await n.json();if(o.coins<a){alert(`您的东币数量不够!当前资源要求东币数:${a};您的东币数:${o.coins}。`);return}else{if(confirm(`当前下载操作花费:${a}东币;您的东币:${o.coins}。是否继续?`)){o.coins-=a;o.transactions.push({type:"debit",amount:a,description:`下载资源:${l}`,date:getCurrentTime()});const c=new Blob([JSON.stringify(o)],{type:"application/json"});await client.put(`user/${t}/coin/list.json`,c);u(s,r,i)}}}catch(t){console.error("Error handling coins for download:",t);alert("无法处理您的请求,请稍后重试。")}}else{u(s,r,i)}};let d=null;const p=async()=>{if(d){return}const t=document.cookie.split("; ");const e=t.find(t=>t.startsWith("token="));const n=e?e.split("=")[1]:"";if(!n){console.error("未找到JWT信息");return}try{const o=await fetch("https://userlogin.xn--xhq44jb2fzpc.com/verifyToken",{method:"POST",headers:{"Content-Type":"application/json",Authorization:n}});const c=await o.json();if(o.ok&&c.email){d=c.email}else{console.error("JWT验证失败或未找到邮箱")}}catch(t){console.error("JWT验证时出错:",t)}};const u=(t,e,n)=>{let o=3;const c=document.getElementById(e);const s=c.querySelector(".popup-content");if(client){let t=client.signatureUrl(n,{expires:20,response:{"content-disposition":"attachment"}});const i=t.replace("emberimg.oss-cn-beijing.aliyuncs.com","download.xn--xhq44jb2fzpc.com");const r=()=>{if(o>0){s.textContent=`${o}秒后将开始下载...`;o--;setTimeout(r,1e3)}else{c.style.display="none";window.location.href=i}};c.style.display="block";r()}else{console.error("OSS client is not initialized.")}};document.getElementById(s).addEventListener("click",t)});function getCurrentTime(){const t=new Date;const e=new Date(t.getTime()+8*60*60*1e3);return e.toISOString().replace("T"," ").substring(0,19)}
|
||||
</script>
|
||||
|
||||
<hr>
|
||||
@ -599,7 +599,7 @@ let client;function getCookie(t){const n=t+"=";const o=document.cookie.split(";"
|
||||
</script>
|
||||
|
||||
|
||||
<script src="https://download.xn--xhq44jb2fzpc.com/upload/loginrequired.min.js"></script>
|
||||
<script src="https://download.xn--xhq44jb2fzpc.com/upload/loginrequired.min.js?v=1.0.3"></script>
|
||||
|
||||
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user