修改内容逻辑

This commit is contained in:
Ember 2025-01-14 00:04:30 +08:00
parent 5d0d4751b2
commit c4721528e3
42 changed files with 64 additions and 125 deletions

File diff suppressed because one or more lines are too long

View File

@ -54,13 +54,9 @@
<pubDate>Mon, 13 Jan 2025 17:01:00 +0800</pubDate>
<guid>https://xn--xhq44jb2fzpc.com/resources/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84%E7%8E%8B%E9%81%93%E7%BD%91%E8%AF%BEpdf/</guid>
<description> 标签:#专业课 #软件学院 #计算机学院 #计算机科学与工程学院 #计院 #软院 #课本 #PDF #电子版 #教材
此处收录了王道《数据结构》网课PPTPDF版
第一部分 文件大小48.69 MB
下载该资源需要10东币
点击下载 下载安全保护中 3秒后将开始下载... 第二部分 文件大小20.02 MB
下载该资源需要5东币
点击下载 下载安全保护中 3秒后将开始下载... 第三部分 文件大小35.46 MB
下载该资源需要8东币
此处收录了王道《数据结构》网课PPTPDF版。共有3个文件请开启浏览器“允许多个文件下载”。
文件大小104.17 MB
下载该资源需要25东币
点击下载 下载安全保护中 3秒后将开始下载... </description>
</item>
<item>

View File

@ -482,7 +482,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 a="resources\/ba\/draft\/Python.7z";const l="popup-"+i;const d= 15 ;const u="《python文管类》PPT";const t=async()=>{const t=getCookie("token");if(!t){alert("请登录后下载!");window.location.href="/submission";return}if(d>0){try{const e=await fetch("https://userlogin.xn--xhq44jb2fzpc.com/coin/remain",{method:"GET",headers:{Authorization:t}});if(!e.ok){if(e.status===401||e.status===403){alert("您的登录信息已过期,请重新登录!");window.location.href="/submission";return}throw new Error("无法检查余额")}const n=await e.json();const o=n.coin;if(o<d){alert(`您的东币数量不够当前资源要求东币数${d}您的东币数${o}`);return}const c=confirm(`当前下载操作扣除东币数:${d},您的东币数:${o},是否继续?`);if(!c){return}const s=await fetch("https://userlogin.xn--xhq44jb2fzpc.com/coin/download",{method:"POST",headers:{"Content-Type":"application/json",Authorization:t},body:JSON.stringify({amount:d,title:u})});const r=await s.json();if(s.ok){p(i,l,a)}else if(s.status===400&&r.message==="Insufficient coins."){alert(`您的东币数量不够当前资源要求东币数${d}`)}else{alert(`下载失败${r.message}`)}}catch(t){console.error("Error during download request:",t);alert("无法处理您的请求请稍后重试")}}else{p(i,l,a)}};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 r=t.replace("emberimg.oss-cn-beijing.aliyuncs.com","download.xn--xhq44jb2fzpc.com");const i=()=>{if(o>0){s.textContent=`${o}秒后将开始下载...`;o--;setTimeout(i,1e3)}else{c.style.display="none";window.location.href=r}};c.style.display="block";i()}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)}
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}?_t=${e}`;return fetch(n)}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)}let client;async function initOSSClient(){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)}}initOSSClient();document.addEventListener("DOMContentLoaded",function(){const t="download-1";const r= 15 ;const a="《python文管类》PPT";const e="resources\/ba\/draft\/Python.7z";let l=[];if(e.indexOf(",")===-1){l=[e]}else{l=e.split(",").map(t=>t.trim()).filter(Boolean)}const d="popup-"+t;const n=document.getElementById(t);n.addEventListener("click",async function(){const t=getCookie("token");if(!t){alert("请登录后下载!");window.location.href="/submission";return}if(r>0){try{const e=await fetch("https://userlogin.xn--xhq44jb2fzpc.com/coin/remain",{method:"GET",headers:{Authorization:t}});if(!e.ok){if(e.status===401||e.status===403){alert("您的登录信息已过期,请重新登录!");window.location.href="/submission";return}throw new Error("无法检查余额")}const n=await e.json();const o=n.coin;if(o<r){alert(`您的东币数量不够当前资源需要${r}您的东币数${o}`);return}const c=confirm(`本次下载将扣除东币:${r},您的东币数:${o}。\n是否继续`);if(!c)return;const s=await fetch("https://userlogin.xn--xhq44jb2fzpc.com/coin/download",{method:"POST",headers:{"Content-Type":"application/json",Authorization:t},body:JSON.stringify({amount:r,title:a})});const i=await s.json();if(s.ok){startDownloadFlow(l,d)}else if(s.status===400&&i.message==="Insufficient coins."){alert(`您的东币数量不够需要${r}`)}else{alert(`下载失败${i.message}`)}}catch(t){console.error("Error during download request:",t);alert("无法处理您的请求请稍后重试")}}else{startDownloadFlow(l,d)}})});function startDownloadFlow(t,e){if(!client){console.error("OSS client is not initialized.");return}const n=document.getElementById(e);const o=n.querySelector(".popup-content");let c=3;const s=t.map(t=>{const e=client.signatureUrl(t,{expires:60,response:{"content-disposition":"attachment"}});return e.replace("emberimg.oss-cn-beijing.aliyuncs.com","download.xn--xhq44jb2fzpc.com")});let i=0;const r=()=>{if(c>0){o.textContent=`${c}秒后将开始下载...`;c--;setTimeout(r,1e3)}else{n.style.display="none";const t=()=>{if(i<s.length){o.textContent=`正在下载第 ${i+1}/${s.length} 个文件...`;window.location.href=s[i];i++;if(i<s.length){setTimeout(t,1e3)}else{o.textContent="所有文件已下载完成!"}}};t()}};n.style.display="block";r()}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>

View File

@ -482,7 +482,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 a="resources\/ba\/draft\/中级财务1.zip";const l="popup-"+i;const d= 10 ;const u="《中级财务1》PPT";const t=async()=>{const t=getCookie("token");if(!t){alert("请登录后下载!");window.location.href="/submission";return}if(d>0){try{const e=await fetch("https://userlogin.xn--xhq44jb2fzpc.com/coin/remain",{method:"GET",headers:{Authorization:t}});if(!e.ok){if(e.status===401||e.status===403){alert("您的登录信息已过期,请重新登录!");window.location.href="/submission";return}throw new Error("无法检查余额")}const n=await e.json();const o=n.coin;if(o<d){alert(`您的东币数量不够当前资源要求东币数${d}您的东币数${o}`);return}const c=confirm(`当前下载操作扣除东币数:${d},您的东币数:${o},是否继续?`);if(!c){return}const s=await fetch("https://userlogin.xn--xhq44jb2fzpc.com/coin/download",{method:"POST",headers:{"Content-Type":"application/json",Authorization:t},body:JSON.stringify({amount:d,title:u})});const r=await s.json();if(s.ok){p(i,l,a)}else if(s.status===400&&r.message==="Insufficient coins."){alert(`您的东币数量不够当前资源要求东币数${d}`)}else{alert(`下载失败${r.message}`)}}catch(t){console.error("Error during download request:",t);alert("无法处理您的请求请稍后重试")}}else{p(i,l,a)}};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 r=t.replace("emberimg.oss-cn-beijing.aliyuncs.com","download.xn--xhq44jb2fzpc.com");const i=()=>{if(o>0){s.textContent=`${o}秒后将开始下载...`;o--;setTimeout(i,1e3)}else{c.style.display="none";window.location.href=r}};c.style.display="block";i()}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)}
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}?_t=${e}`;return fetch(n)}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)}let client;async function initOSSClient(){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)}}initOSSClient();document.addEventListener("DOMContentLoaded",function(){const t="download-1";const r= 10 ;const a="《中级财务1》PPT";const e="resources\/ba\/draft\/中级财务1.zip";let l=[];if(e.indexOf(",")===-1){l=[e]}else{l=e.split(",").map(t=>t.trim()).filter(Boolean)}const d="popup-"+t;const n=document.getElementById(t);n.addEventListener("click",async function(){const t=getCookie("token");if(!t){alert("请登录后下载!");window.location.href="/submission";return}if(r>0){try{const e=await fetch("https://userlogin.xn--xhq44jb2fzpc.com/coin/remain",{method:"GET",headers:{Authorization:t}});if(!e.ok){if(e.status===401||e.status===403){alert("您的登录信息已过期,请重新登录!");window.location.href="/submission";return}throw new Error("无法检查余额")}const n=await e.json();const o=n.coin;if(o<r){alert(`您的东币数量不够当前资源需要${r}您的东币数${o}`);return}const c=confirm(`本次下载将扣除东币:${r},您的东币数:${o}。\n是否继续`);if(!c)return;const s=await fetch("https://userlogin.xn--xhq44jb2fzpc.com/coin/download",{method:"POST",headers:{"Content-Type":"application/json",Authorization:t},body:JSON.stringify({amount:r,title:a})});const i=await s.json();if(s.ok){startDownloadFlow(l,d)}else if(s.status===400&&i.message==="Insufficient coins."){alert(`您的东币数量不够需要${r}`)}else{alert(`下载失败${i.message}`)}}catch(t){console.error("Error during download request:",t);alert("无法处理您的请求请稍后重试")}}else{startDownloadFlow(l,d)}})});function startDownloadFlow(t,e){if(!client){console.error("OSS client is not initialized.");return}const n=document.getElementById(e);const o=n.querySelector(".popup-content");let c=3;const s=t.map(t=>{const e=client.signatureUrl(t,{expires:60,response:{"content-disposition":"attachment"}});return e.replace("emberimg.oss-cn-beijing.aliyuncs.com","download.xn--xhq44jb2fzpc.com")});let i=0;const r=()=>{if(c>0){o.textContent=`${c}秒后将开始下载...`;c--;setTimeout(r,1e3)}else{n.style.display="none";const t=()=>{if(i<s.length){o.textContent=`正在下载第 ${i+1}/${s.length} 个文件...`;window.location.href=s[i];i++;if(i<s.length){setTimeout(t,1e3)}else{o.textContent="所有文件已下载完成!"}}};t()}};n.style.display="block";r()}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>

View File

@ -482,7 +482,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 a="resources\/ba\/draft\/中级财务2.zip";const l="popup-"+i;const d= 10 ;const u="《中级财务2》PPT";const t=async()=>{const t=getCookie("token");if(!t){alert("请登录后下载!");window.location.href="/submission";return}if(d>0){try{const e=await fetch("https://userlogin.xn--xhq44jb2fzpc.com/coin/remain",{method:"GET",headers:{Authorization:t}});if(!e.ok){if(e.status===401||e.status===403){alert("您的登录信息已过期,请重新登录!");window.location.href="/submission";return}throw new Error("无法检查余额")}const n=await e.json();const o=n.coin;if(o<d){alert(`您的东币数量不够当前资源要求东币数${d}您的东币数${o}`);return}const c=confirm(`当前下载操作扣除东币数:${d},您的东币数:${o},是否继续?`);if(!c){return}const s=await fetch("https://userlogin.xn--xhq44jb2fzpc.com/coin/download",{method:"POST",headers:{"Content-Type":"application/json",Authorization:t},body:JSON.stringify({amount:d,title:u})});const r=await s.json();if(s.ok){p(i,l,a)}else if(s.status===400&&r.message==="Insufficient coins."){alert(`您的东币数量不够当前资源要求东币数${d}`)}else{alert(`下载失败${r.message}`)}}catch(t){console.error("Error during download request:",t);alert("无法处理您的请求请稍后重试")}}else{p(i,l,a)}};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 r=t.replace("emberimg.oss-cn-beijing.aliyuncs.com","download.xn--xhq44jb2fzpc.com");const i=()=>{if(o>0){s.textContent=`${o}秒后将开始下载...`;o--;setTimeout(i,1e3)}else{c.style.display="none";window.location.href=r}};c.style.display="block";i()}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)}
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}?_t=${e}`;return fetch(n)}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)}let client;async function initOSSClient(){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)}}initOSSClient();document.addEventListener("DOMContentLoaded",function(){const t="download-1";const r= 10 ;const a="《中级财务2》PPT";const e="resources\/ba\/draft\/中级财务2.zip";let l=[];if(e.indexOf(",")===-1){l=[e]}else{l=e.split(",").map(t=>t.trim()).filter(Boolean)}const d="popup-"+t;const n=document.getElementById(t);n.addEventListener("click",async function(){const t=getCookie("token");if(!t){alert("请登录后下载!");window.location.href="/submission";return}if(r>0){try{const e=await fetch("https://userlogin.xn--xhq44jb2fzpc.com/coin/remain",{method:"GET",headers:{Authorization:t}});if(!e.ok){if(e.status===401||e.status===403){alert("您的登录信息已过期,请重新登录!");window.location.href="/submission";return}throw new Error("无法检查余额")}const n=await e.json();const o=n.coin;if(o<r){alert(`您的东币数量不够当前资源需要${r}您的东币数${o}`);return}const c=confirm(`本次下载将扣除东币:${r},您的东币数:${o}。\n是否继续`);if(!c)return;const s=await fetch("https://userlogin.xn--xhq44jb2fzpc.com/coin/download",{method:"POST",headers:{"Content-Type":"application/json",Authorization:t},body:JSON.stringify({amount:r,title:a})});const i=await s.json();if(s.ok){startDownloadFlow(l,d)}else if(s.status===400&&i.message==="Insufficient coins."){alert(`您的东币数量不够需要${r}`)}else{alert(`下载失败${i.message}`)}}catch(t){console.error("Error during download request:",t);alert("无法处理您的请求请稍后重试")}}else{startDownloadFlow(l,d)}})});function startDownloadFlow(t,e){if(!client){console.error("OSS client is not initialized.");return}const n=document.getElementById(e);const o=n.querySelector(".popup-content");let c=3;const s=t.map(t=>{const e=client.signatureUrl(t,{expires:60,response:{"content-disposition":"attachment"}});return e.replace("emberimg.oss-cn-beijing.aliyuncs.com","download.xn--xhq44jb2fzpc.com")});let i=0;const r=()=>{if(c>0){o.textContent=`${c}秒后将开始下载...`;c--;setTimeout(r,1e3)}else{n.style.display="none";const t=()=>{if(i<s.length){o.textContent=`正在下载第 ${i+1}/${s.length} 个文件...`;window.location.href=s[i];i++;if(i<s.length){setTimeout(t,1e3)}else{o.textContent="所有文件已下载完成!"}}};t()}};n.style.display="block";r()}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>

View File

@ -482,7 +482,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 a="resources\/ba\/draft\/2022注会教材会计高清无水印.pdf";const l="popup-"+i;const d= 70 ;const u="《会计》课本";const t=async()=>{const t=getCookie("token");if(!t){alert("请登录后下载!");window.location.href="/submission";return}if(d>0){try{const e=await fetch("https://userlogin.xn--xhq44jb2fzpc.com/coin/remain",{method:"GET",headers:{Authorization:t}});if(!e.ok){if(e.status===401||e.status===403){alert("您的登录信息已过期,请重新登录!");window.location.href="/submission";return}throw new Error("无法检查余额")}const n=await e.json();const o=n.coin;if(o<d){alert(`您的东币数量不够当前资源要求东币数${d}您的东币数${o}`);return}const c=confirm(`当前下载操作扣除东币数:${d},您的东币数:${o},是否继续?`);if(!c){return}const s=await fetch("https://userlogin.xn--xhq44jb2fzpc.com/coin/download",{method:"POST",headers:{"Content-Type":"application/json",Authorization:t},body:JSON.stringify({amount:d,title:u})});const r=await s.json();if(s.ok){p(i,l,a)}else if(s.status===400&&r.message==="Insufficient coins."){alert(`您的东币数量不够当前资源要求东币数${d}`)}else{alert(`下载失败${r.message}`)}}catch(t){console.error("Error during download request:",t);alert("无法处理您的请求请稍后重试")}}else{p(i,l,a)}};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 r=t.replace("emberimg.oss-cn-beijing.aliyuncs.com","download.xn--xhq44jb2fzpc.com");const i=()=>{if(o>0){s.textContent=`${o}秒后将开始下载...`;o--;setTimeout(i,1e3)}else{c.style.display="none";window.location.href=r}};c.style.display="block";i()}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)}
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}?_t=${e}`;return fetch(n)}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)}let client;async function initOSSClient(){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)}}initOSSClient();document.addEventListener("DOMContentLoaded",function(){const t="download-1";const r= 70 ;const a="《会计》课本";const e="resources\/ba\/draft\/2022注会教材会计高清无水印.pdf";let l=[];if(e.indexOf(",")===-1){l=[e]}else{l=e.split(",").map(t=>t.trim()).filter(Boolean)}const d="popup-"+t;const n=document.getElementById(t);n.addEventListener("click",async function(){const t=getCookie("token");if(!t){alert("请登录后下载!");window.location.href="/submission";return}if(r>0){try{const e=await fetch("https://userlogin.xn--xhq44jb2fzpc.com/coin/remain",{method:"GET",headers:{Authorization:t}});if(!e.ok){if(e.status===401||e.status===403){alert("您的登录信息已过期,请重新登录!");window.location.href="/submission";return}throw new Error("无法检查余额")}const n=await e.json();const o=n.coin;if(o<r){alert(`您的东币数量不够当前资源需要${r}您的东币数${o}`);return}const c=confirm(`本次下载将扣除东币:${r},您的东币数:${o}。\n是否继续`);if(!c)return;const s=await fetch("https://userlogin.xn--xhq44jb2fzpc.com/coin/download",{method:"POST",headers:{"Content-Type":"application/json",Authorization:t},body:JSON.stringify({amount:r,title:a})});const i=await s.json();if(s.ok){startDownloadFlow(l,d)}else if(s.status===400&&i.message==="Insufficient coins."){alert(`您的东币数量不够需要${r}`)}else{alert(`下载失败${i.message}`)}}catch(t){console.error("Error during download request:",t);alert("无法处理您的请求请稍后重试")}}else{startDownloadFlow(l,d)}})});function startDownloadFlow(t,e){if(!client){console.error("OSS client is not initialized.");return}const n=document.getElementById(e);const o=n.querySelector(".popup-content");let c=3;const s=t.map(t=>{const e=client.signatureUrl(t,{expires:60,response:{"content-disposition":"attachment"}});return e.replace("emberimg.oss-cn-beijing.aliyuncs.com","download.xn--xhq44jb2fzpc.com")});let i=0;const r=()=>{if(c>0){o.textContent=`${c}秒后将开始下载...`;c--;setTimeout(r,1e3)}else{n.style.display="none";const t=()=>{if(i<s.length){o.textContent=`正在下载第 ${i+1}/${s.length} 个文件...`;window.location.href=s[i];i++;if(i<s.length){setTimeout(t,1e3)}else{o.textContent="所有文件已下载完成!"}}};t()}};n.style.display="block";r()}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>

View File

@ -482,7 +482,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 a="resources\/ba\/draft\/马工程《发展经济学》书.pdf";const l="popup-"+i;const d= 65 ;const u="《发展经济学》课本";const t=async()=>{const t=getCookie("token");if(!t){alert("请登录后下载!");window.location.href="/submission";return}if(d>0){try{const e=await fetch("https://userlogin.xn--xhq44jb2fzpc.com/coin/remain",{method:"GET",headers:{Authorization:t}});if(!e.ok){if(e.status===401||e.status===403){alert("您的登录信息已过期,请重新登录!");window.location.href="/submission";return}throw new Error("无法检查余额")}const n=await e.json();const o=n.coin;if(o<d){alert(`您的东币数量不够当前资源要求东币数${d}您的东币数${o}`);return}const c=confirm(`当前下载操作扣除东币数:${d},您的东币数:${o},是否继续?`);if(!c){return}const s=await fetch("https://userlogin.xn--xhq44jb2fzpc.com/coin/download",{method:"POST",headers:{"Content-Type":"application/json",Authorization:t},body:JSON.stringify({amount:d,title:u})});const r=await s.json();if(s.ok){p(i,l,a)}else if(s.status===400&&r.message==="Insufficient coins."){alert(`您的东币数量不够当前资源要求东币数${d}`)}else{alert(`下载失败${r.message}`)}}catch(t){console.error("Error during download request:",t);alert("无法处理您的请求请稍后重试")}}else{p(i,l,a)}};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 r=t.replace("emberimg.oss-cn-beijing.aliyuncs.com","download.xn--xhq44jb2fzpc.com");const i=()=>{if(o>0){s.textContent=`${o}秒后将开始下载...`;o--;setTimeout(i,1e3)}else{c.style.display="none";window.location.href=r}};c.style.display="block";i()}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)}
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}?_t=${e}`;return fetch(n)}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)}let client;async function initOSSClient(){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)}}initOSSClient();document.addEventListener("DOMContentLoaded",function(){const t="download-1";const r= 65 ;const a="《发展经济学》课本";const e="resources\/ba\/draft\/马工程《发展经济学》书.pdf";let l=[];if(e.indexOf(",")===-1){l=[e]}else{l=e.split(",").map(t=>t.trim()).filter(Boolean)}const d="popup-"+t;const n=document.getElementById(t);n.addEventListener("click",async function(){const t=getCookie("token");if(!t){alert("请登录后下载!");window.location.href="/submission";return}if(r>0){try{const e=await fetch("https://userlogin.xn--xhq44jb2fzpc.com/coin/remain",{method:"GET",headers:{Authorization:t}});if(!e.ok){if(e.status===401||e.status===403){alert("您的登录信息已过期,请重新登录!");window.location.href="/submission";return}throw new Error("无法检查余额")}const n=await e.json();const o=n.coin;if(o<r){alert(`您的东币数量不够当前资源需要${r}您的东币数${o}`);return}const c=confirm(`本次下载将扣除东币:${r},您的东币数:${o}。\n是否继续`);if(!c)return;const s=await fetch("https://userlogin.xn--xhq44jb2fzpc.com/coin/download",{method:"POST",headers:{"Content-Type":"application/json",Authorization:t},body:JSON.stringify({amount:r,title:a})});const i=await s.json();if(s.ok){startDownloadFlow(l,d)}else if(s.status===400&&i.message==="Insufficient coins."){alert(`您的东币数量不够需要${r}`)}else{alert(`下载失败${i.message}`)}}catch(t){console.error("Error during download request:",t);alert("无法处理您的请求请稍后重试")}}else{startDownloadFlow(l,d)}})});function startDownloadFlow(t,e){if(!client){console.error("OSS client is not initialized.");return}const n=document.getElementById(e);const o=n.querySelector(".popup-content");let c=3;const s=t.map(t=>{const e=client.signatureUrl(t,{expires:60,response:{"content-disposition":"attachment"}});return e.replace("emberimg.oss-cn-beijing.aliyuncs.com","download.xn--xhq44jb2fzpc.com")});let i=0;const r=()=>{if(c>0){o.textContent=`${c}秒后将开始下载...`;c--;setTimeout(r,1e3)}else{n.style.display="none";const t=()=>{if(i<s.length){o.textContent=`正在下载第 ${i+1}/${s.length} 个文件...`;window.location.href=s[i];i++;if(i<s.length){setTimeout(t,1e3)}else{o.textContent="所有文件已下载完成!"}}};t()}};n.style.display="block";r()}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>

View File

@ -482,7 +482,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 a="resources\/ba\/draft\/商务信息与管理.zip";const l="popup-"+i;const d= 15 ;const u="《商务信息与管理》PPT";const t=async()=>{const t=getCookie("token");if(!t){alert("请登录后下载!");window.location.href="/submission";return}if(d>0){try{const e=await fetch("https://userlogin.xn--xhq44jb2fzpc.com/coin/remain",{method:"GET",headers:{Authorization:t}});if(!e.ok){if(e.status===401||e.status===403){alert("您的登录信息已过期,请重新登录!");window.location.href="/submission";return}throw new Error("无法检查余额")}const n=await e.json();const o=n.coin;if(o<d){alert(`您的东币数量不够当前资源要求东币数${d}您的东币数${o}`);return}const c=confirm(`当前下载操作扣除东币数:${d},您的东币数:${o},是否继续?`);if(!c){return}const s=await fetch("https://userlogin.xn--xhq44jb2fzpc.com/coin/download",{method:"POST",headers:{"Content-Type":"application/json",Authorization:t},body:JSON.stringify({amount:d,title:u})});const r=await s.json();if(s.ok){p(i,l,a)}else if(s.status===400&&r.message==="Insufficient coins."){alert(`您的东币数量不够当前资源要求东币数${d}`)}else{alert(`下载失败${r.message}`)}}catch(t){console.error("Error during download request:",t);alert("无法处理您的请求请稍后重试")}}else{p(i,l,a)}};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 r=t.replace("emberimg.oss-cn-beijing.aliyuncs.com","download.xn--xhq44jb2fzpc.com");const i=()=>{if(o>0){s.textContent=`${o}秒后将开始下载...`;o--;setTimeout(i,1e3)}else{c.style.display="none";window.location.href=r}};c.style.display="block";i()}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)}
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}?_t=${e}`;return fetch(n)}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)}let client;async function initOSSClient(){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)}}initOSSClient();document.addEventListener("DOMContentLoaded",function(){const t="download-1";const r= 15 ;const a="《商务信息与管理》PPT";const e="resources\/ba\/draft\/商务信息与管理.zip";let l=[];if(e.indexOf(",")===-1){l=[e]}else{l=e.split(",").map(t=>t.trim()).filter(Boolean)}const d="popup-"+t;const n=document.getElementById(t);n.addEventListener("click",async function(){const t=getCookie("token");if(!t){alert("请登录后下载!");window.location.href="/submission";return}if(r>0){try{const e=await fetch("https://userlogin.xn--xhq44jb2fzpc.com/coin/remain",{method:"GET",headers:{Authorization:t}});if(!e.ok){if(e.status===401||e.status===403){alert("您的登录信息已过期,请重新登录!");window.location.href="/submission";return}throw new Error("无法检查余额")}const n=await e.json();const o=n.coin;if(o<r){alert(`您的东币数量不够当前资源需要${r}您的东币数${o}`);return}const c=confirm(`本次下载将扣除东币:${r},您的东币数:${o}。\n是否继续`);if(!c)return;const s=await fetch("https://userlogin.xn--xhq44jb2fzpc.com/coin/download",{method:"POST",headers:{"Content-Type":"application/json",Authorization:t},body:JSON.stringify({amount:r,title:a})});const i=await s.json();if(s.ok){startDownloadFlow(l,d)}else if(s.status===400&&i.message==="Insufficient coins."){alert(`您的东币数量不够需要${r}`)}else{alert(`下载失败${i.message}`)}}catch(t){console.error("Error during download request:",t);alert("无法处理您的请求请稍后重试")}}else{startDownloadFlow(l,d)}})});function startDownloadFlow(t,e){if(!client){console.error("OSS client is not initialized.");return}const n=document.getElementById(e);const o=n.querySelector(".popup-content");let c=3;const s=t.map(t=>{const e=client.signatureUrl(t,{expires:60,response:{"content-disposition":"attachment"}});return e.replace("emberimg.oss-cn-beijing.aliyuncs.com","download.xn--xhq44jb2fzpc.com")});let i=0;const r=()=>{if(c>0){o.textContent=`${c}秒后将开始下载...`;c--;setTimeout(r,1e3)}else{n.style.display="none";const t=()=>{if(i<s.length){o.textContent=`正在下载第 ${i+1}/${s.length} 个文件...`;window.location.href=s[i];i++;if(i<s.length){setTimeout(t,1e3)}else{o.textContent="所有文件已下载完成!"}}};t()}};n.style.display="block";r()}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>

View File

@ -482,7 +482,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 a="resources\/ba\/draft\/商务网站开发管理.zip";const l="popup-"+i;const d= 25 ;const u="《商务网站开发管理》PPT";const t=async()=>{const t=getCookie("token");if(!t){alert("请登录后下载!");window.location.href="/submission";return}if(d>0){try{const e=await fetch("https://userlogin.xn--xhq44jb2fzpc.com/coin/remain",{method:"GET",headers:{Authorization:t}});if(!e.ok){if(e.status===401||e.status===403){alert("您的登录信息已过期,请重新登录!");window.location.href="/submission";return}throw new Error("无法检查余额")}const n=await e.json();const o=n.coin;if(o<d){alert(`您的东币数量不够当前资源要求东币数${d}您的东币数${o}`);return}const c=confirm(`当前下载操作扣除东币数:${d},您的东币数:${o},是否继续?`);if(!c){return}const s=await fetch("https://userlogin.xn--xhq44jb2fzpc.com/coin/download",{method:"POST",headers:{"Content-Type":"application/json",Authorization:t},body:JSON.stringify({amount:d,title:u})});const r=await s.json();if(s.ok){p(i,l,a)}else if(s.status===400&&r.message==="Insufficient coins."){alert(`您的东币数量不够当前资源要求东币数${d}`)}else{alert(`下载失败${r.message}`)}}catch(t){console.error("Error during download request:",t);alert("无法处理您的请求请稍后重试")}}else{p(i,l,a)}};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 r=t.replace("emberimg.oss-cn-beijing.aliyuncs.com","download.xn--xhq44jb2fzpc.com");const i=()=>{if(o>0){s.textContent=`${o}秒后将开始下载...`;o--;setTimeout(i,1e3)}else{c.style.display="none";window.location.href=r}};c.style.display="block";i()}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)}
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}?_t=${e}`;return fetch(n)}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)}let client;async function initOSSClient(){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)}}initOSSClient();document.addEventListener("DOMContentLoaded",function(){const t="download-1";const r= 25 ;const a="《商务网站开发管理》PPT";const e="resources\/ba\/draft\/商务网站开发管理.zip";let l=[];if(e.indexOf(",")===-1){l=[e]}else{l=e.split(",").map(t=>t.trim()).filter(Boolean)}const d="popup-"+t;const n=document.getElementById(t);n.addEventListener("click",async function(){const t=getCookie("token");if(!t){alert("请登录后下载!");window.location.href="/submission";return}if(r>0){try{const e=await fetch("https://userlogin.xn--xhq44jb2fzpc.com/coin/remain",{method:"GET",headers:{Authorization:t}});if(!e.ok){if(e.status===401||e.status===403){alert("您的登录信息已过期,请重新登录!");window.location.href="/submission";return}throw new Error("无法检查余额")}const n=await e.json();const o=n.coin;if(o<r){alert(`您的东币数量不够当前资源需要${r}您的东币数${o}`);return}const c=confirm(`本次下载将扣除东币:${r},您的东币数:${o}。\n是否继续`);if(!c)return;const s=await fetch("https://userlogin.xn--xhq44jb2fzpc.com/coin/download",{method:"POST",headers:{"Content-Type":"application/json",Authorization:t},body:JSON.stringify({amount:r,title:a})});const i=await s.json();if(s.ok){startDownloadFlow(l,d)}else if(s.status===400&&i.message==="Insufficient coins."){alert(`您的东币数量不够需要${r}`)}else{alert(`下载失败${i.message}`)}}catch(t){console.error("Error during download request:",t);alert("无法处理您的请求请稍后重试")}}else{startDownloadFlow(l,d)}})});function startDownloadFlow(t,e){if(!client){console.error("OSS client is not initialized.");return}const n=document.getElementById(e);const o=n.querySelector(".popup-content");let c=3;const s=t.map(t=>{const e=client.signatureUrl(t,{expires:60,response:{"content-disposition":"attachment"}});return e.replace("emberimg.oss-cn-beijing.aliyuncs.com","download.xn--xhq44jb2fzpc.com")});let i=0;const r=()=>{if(c>0){o.textContent=`${c}秒后将开始下载...`;c--;setTimeout(r,1e3)}else{n.style.display="none";const t=()=>{if(i<s.length){o.textContent=`正在下载第 ${i+1}/${s.length} 个文件...`;window.location.href=s[i];i++;if(i<s.length){setTimeout(t,1e3)}else{o.textContent="所有文件已下载完成!"}}};t()}};n.style.display="block";r()}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>

View File

@ -482,7 +482,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 a="resources\/ba\/draft\/国际贸易.rar";const l="popup-"+i;const d= 15 ;const u="《国际贸易》PPT";const t=async()=>{const t=getCookie("token");if(!t){alert("请登录后下载!");window.location.href="/submission";return}if(d>0){try{const e=await fetch("https://userlogin.xn--xhq44jb2fzpc.com/coin/remain",{method:"GET",headers:{Authorization:t}});if(!e.ok){if(e.status===401||e.status===403){alert("您的登录信息已过期,请重新登录!");window.location.href="/submission";return}throw new Error("无法检查余额")}const n=await e.json();const o=n.coin;if(o<d){alert(`您的东币数量不够当前资源要求东币数${d}您的东币数${o}`);return}const c=confirm(`当前下载操作扣除东币数:${d},您的东币数:${o},是否继续?`);if(!c){return}const s=await fetch("https://userlogin.xn--xhq44jb2fzpc.com/coin/download",{method:"POST",headers:{"Content-Type":"application/json",Authorization:t},body:JSON.stringify({amount:d,title:u})});const r=await s.json();if(s.ok){p(i,l,a)}else if(s.status===400&&r.message==="Insufficient coins."){alert(`您的东币数量不够当前资源要求东币数${d}`)}else{alert(`下载失败${r.message}`)}}catch(t){console.error("Error during download request:",t);alert("无法处理您的请求请稍后重试")}}else{p(i,l,a)}};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 r=t.replace("emberimg.oss-cn-beijing.aliyuncs.com","download.xn--xhq44jb2fzpc.com");const i=()=>{if(o>0){s.textContent=`${o}秒后将开始下载...`;o--;setTimeout(i,1e3)}else{c.style.display="none";window.location.href=r}};c.style.display="block";i()}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)}
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}?_t=${e}`;return fetch(n)}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)}let client;async function initOSSClient(){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)}}initOSSClient();document.addEventListener("DOMContentLoaded",function(){const t="download-1";const r= 15 ;const a="《国际贸易》PPT";const e="resources\/ba\/draft\/国际贸易.rar";let l=[];if(e.indexOf(",")===-1){l=[e]}else{l=e.split(",").map(t=>t.trim()).filter(Boolean)}const d="popup-"+t;const n=document.getElementById(t);n.addEventListener("click",async function(){const t=getCookie("token");if(!t){alert("请登录后下载!");window.location.href="/submission";return}if(r>0){try{const e=await fetch("https://userlogin.xn--xhq44jb2fzpc.com/coin/remain",{method:"GET",headers:{Authorization:t}});if(!e.ok){if(e.status===401||e.status===403){alert("您的登录信息已过期,请重新登录!");window.location.href="/submission";return}throw new Error("无法检查余额")}const n=await e.json();const o=n.coin;if(o<r){alert(`您的东币数量不够当前资源需要${r}您的东币数${o}`);return}const c=confirm(`本次下载将扣除东币:${r},您的东币数:${o}。\n是否继续`);if(!c)return;const s=await fetch("https://userlogin.xn--xhq44jb2fzpc.com/coin/download",{method:"POST",headers:{"Content-Type":"application/json",Authorization:t},body:JSON.stringify({amount:r,title:a})});const i=await s.json();if(s.ok){startDownloadFlow(l,d)}else if(s.status===400&&i.message==="Insufficient coins."){alert(`您的东币数量不够需要${r}`)}else{alert(`下载失败${i.message}`)}}catch(t){console.error("Error during download request:",t);alert("无法处理您的请求请稍后重试")}}else{startDownloadFlow(l,d)}})});function startDownloadFlow(t,e){if(!client){console.error("OSS client is not initialized.");return}const n=document.getElementById(e);const o=n.querySelector(".popup-content");let c=3;const s=t.map(t=>{const e=client.signatureUrl(t,{expires:60,response:{"content-disposition":"attachment"}});return e.replace("emberimg.oss-cn-beijing.aliyuncs.com","download.xn--xhq44jb2fzpc.com")});let i=0;const r=()=>{if(c>0){o.textContent=`${c}秒后将开始下载...`;c--;setTimeout(r,1e3)}else{n.style.display="none";const t=()=>{if(i<s.length){o.textContent=`正在下载第 ${i+1}/${s.length} 个文件...`;window.location.href=s[i];i++;if(i<s.length){setTimeout(t,1e3)}else{o.textContent="所有文件已下载完成!"}}};t()}};n.style.display="block";r()}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>

Some files were not shown because too many files have changed in this diff Show More