改名为东币系统

This commit is contained in:
Ember 2024-09-01 08:32:31 +08:00
parent 10ac82b0e8
commit cde31bf6e8
11 changed files with 57 additions and 57 deletions

File diff suppressed because one or more lines are too long

View File

@ -97,7 +97,7 @@
<guid>https://xn--xhq44jb2fzpc.com/resources/%E6%95%B0%E5%80%BC%E5%88%86%E6%9E%90%E8%AF%BE%E6%9C%AC/</guid>
<description>标签:#金币 #可预览 #PDF #数值分析 #数分 #课本 #教材
此处收录了《数值分析》课本编者为张铁、邵新慧高质量PDF格式文字可复制、查找
下载该资源需要10
下载该资源需要10
点击下载 下载安全保护中 3秒后将开始下载... 封面如下:
页面已提供在线预览,推荐您使用全屏预览。
温馨提示手机端可能无法正常预览PDF文件。请使用电脑浏览器访问。</description>
@ -109,7 +109,7 @@
<guid>https://xn--xhq44jb2fzpc.com/resources/%E5%85%AC%E8%B7%AF%E4%BA%A4%E9%80%9Appt/</guid>
<description>标签:#可预览 #PDF #PPT #公路交通 #选修课
此处收录了《公路交通与驾驶技术》完整版PPT文件内文字可复制、查找
下载该资源需要8
下载该资源需要8
点击下载 下载安全保护中 3秒后将开始下载... 页面已提供在线预览,推荐您使用全屏预览。
温馨提示手机端可能无法正常预览PDF文件。请使用电脑浏览器访问。</description>
</item>
@ -120,7 +120,7 @@
<guid>https://xn--xhq44jb2fzpc.com/resources/%E4%B9%A0%E6%A6%82%E8%AF%BE%E6%9C%AC/</guid>
<description>标签:#可预览 #PDF #习概 #课本 #教材 #2023
此处收录了《习近平新时代中国特色社会主义思想概论》课本高质量PDF格式文字可复制、查找
下载该资源需要5
下载该资源需要5
点击下载 下载安全保护中 3秒后将开始下载... 页面已提供在线预览,推荐您使用全屏预览。
温馨提示手机端可能无法正常预览PDF文件。请使用电脑浏览器访问。</description>
</item>
@ -131,7 +131,7 @@
<guid>https://xn--xhq44jb2fzpc.com/resources/%E9%A9%AC%E5%8E%9F%E8%AF%BE%E6%9C%AC/</guid>
<description>标签:#可预览 #PDF #马原 #课本 #教材 #2023 #OCR
此处收录了《马克思主义基本原理》课本2023版OCR版本文字可复制、查找
下载该资源需要5
下载该资源需要5
点击下载 下载安全保护中 3秒后将开始下载... 页面已提供在线预览,推荐您使用全屏预览。
温馨提示手机端可能无法正常预览PDF文件。请使用电脑浏览器访问。</description>
</item>

File diff suppressed because it is too large Load Diff

8
js/coin.min.js vendored
View File

@ -1,9 +1,9 @@
function loadCoinSystem(){function l(e){var t=document.getElementById("coin-content");t.innerHTML=`<p>当前币数:${e.coins}</p>`;let n=document.createElement("table");n.insertRow().innerHTML="<th>时间</th><th>明细</th><th>操作</th>",e.transactions.forEach(e=>{n.insertRow().innerHTML=`
function loadCoinSystem(){function l(e){var t=document.getElementById("coin-content");t.innerHTML=`<p>当前币数:${e.coins}</p>`;let n=document.createElement("table");n.insertRow().innerHTML="<th>时间</th><th>明细</th><th>操作</th>",e.transactions.forEach(e=>{n.insertRow().innerHTML=`
<td>${e.date}</td>
<td>${"credit"===e.type?"+":"-"}${e.amount}</td>
<td>${e.description}</td>
`}),t.appendChild(n)}function o(){let s=document.getElementById("verification-modal"),o=(s.style.display="block",document.getElementById("send-code-btn")),a=document.getElementById("verify-btn"),i=document.getElementById("phone-number"),c=document.getElementById("verification-code"),d=document.getElementById("modal-message");o.addEventListener("click",async()=>{var e=i.value.trim();if(/^\d{11}$/.test(e)&&"1"===e.charAt(0))try{var t,n=CryptoJS.SHA256(e).toString();(await(await fetchNoCache("https://download.xn--xhq44jb2fzpc.com/user/pn.json")).json()).includes(n)?(d.innerText="此手机号已被验证过!",o.disabled=!1,o.textContent="发送验证码"):(o.disabled=!0,o.textContent="禁用中...",setTimeout(()=>{o.disabled=!1,o.textContent="发送验证码"},12e4),await(t=await fetch("https://sms.xn--xhq44jb2fzpc.com/send-code",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({phoneNumber:e})})).json(),t.ok?(d.innerText="验证码已发送。若未收到2分钟后可重新发送。",sessionStorage.setItem("phoneNumber",e)):(d.innerText="发送失败!请稍后再试。",o.disabled=!1,o.textContent="发送验证码"))}catch(e){d.innerText="发送验证码时出错,请稍后重试。",o.disabled=!1,o.textContent="发送验证码"}else d.innerText="请输入有效的11位手机号码"}),a.addEventListener("click",async()=>{var e=sessionStorage.getItem("phoneNumber"),t=c.value.trim();if(d.innerText="",t&&e)try{var n,o,i=await fetch("https://sms.xn--xhq44jb2fzpc.com/verify-code",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({phoneNumber:e,verificationCode:t})}),r=await i.json();i.ok&&r.verified?(d.innerText="验证通过,请稍后……",a.disabled=!0,c.disabled=!0,n=CryptoJS.SHA256(e).toString(),(o=await(await fetchNoCache("https://download.xn--xhq44jb2fzpc.com/user/pn.json")).json()).push(n),await client.put("user/pn.json",new Blob([JSON.stringify(o)],{type:"application/json"})),setTimeout(async()=>{s.style.display="none";var e={userEmail:curemail,coins:20,transactions:[{type:"credit",amount:20,description:"初始币奖励",date:(e=new Date,new Date(e.getTime()+288e5).toISOString().replace("T"," ").substring(0,19))}]},t=new Blob([JSON.stringify(!0)],{type:"application/json"}),t=(await client.put(`user/${curemail}/coin/verify.json`,t),new Blob([JSON.stringify(e)],{type:"application/json"}));await client.put(`user/${curemail}/coin/list.json`,t),l(e)},2e3)):d.innerText="验证码错误,请重新输入。"}catch(e){d.innerText="验证时出错,请稍后重试。"}else d.innerText="请输入手机号和验证码。"})}document.getElementById("cancel-btn").addEventListener("click",function(){document.getElementById("verification-modal").style.display="none"}),async function(){try{var e=`https://download.xn--xhq44jb2fzpc.com/user/${curemail}/coin/verify.json`,t=await(await fetchNoCache(e)).json();if(console.log("Verify Response: ",t),!0!==t)throw new Error("Verification required");var n=`https://download.xn--xhq44jb2fzpc.com/user/${curemail}/coin/list.json`;l(await(await fetchNoCache(n)).json())}catch(e){console.error("Error in initializeCoinSystem: ",e);{let e=document.getElementById("coin-content"),t=(e.innerHTML=`
<p>您需要进行手机验证以解锁金币系统下载某些资源时会花费金币而投稿审核通过后可以获得金</p>
<p><strong>请注意</strong><strong></strong></p>
`}),t.appendChild(n)}function o(){let s=document.getElementById("verification-modal"),o=(s.style.display="block",document.getElementById("send-code-btn")),a=document.getElementById("verify-btn"),i=document.getElementById("phone-number"),c=document.getElementById("verification-code"),d=document.getElementById("modal-message");o.addEventListener("click",async()=>{var e=i.value.trim();if(/^\d{11}$/.test(e)&&"1"===e.charAt(0))try{var t,n=CryptoJS.SHA256(e).toString();(await(await fetchNoCache("https://download.xn--xhq44jb2fzpc.com/user/pn.json")).json()).includes(n)?(d.innerText="此手机号已被验证过!",o.disabled=!1,o.textContent="发送验证码"):(o.disabled=!0,o.textContent="禁用中...",setTimeout(()=>{o.disabled=!1,o.textContent="发送验证码"},12e4),await(t=await fetch("https://sms.xn--xhq44jb2fzpc.com/send-code",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({phoneNumber:e})})).json(),t.ok?(d.innerText="验证码已发送。若未收到2分钟后可重新发送。",sessionStorage.setItem("phoneNumber",e)):(d.innerText="发送失败!请稍后再试。",o.disabled=!1,o.textContent="发送验证码"))}catch(e){d.innerText="发送验证码时出错,请稍后重试。",o.disabled=!1,o.textContent="发送验证码"}else d.innerText="请输入有效的11位手机号码"}),a.addEventListener("click",async()=>{var e=sessionStorage.getItem("phoneNumber"),t=c.value.trim();if(d.innerText="",t&&e)try{var n,o,i=await fetch("https://sms.xn--xhq44jb2fzpc.com/verify-code",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({phoneNumber:e,verificationCode:t})}),r=await i.json();i.ok&&r.verified?(d.innerText="验证通过,请稍后……",a.disabled=!0,c.disabled=!0,n=CryptoJS.SHA256(e).toString(),(o=await(await fetchNoCache("https://download.xn--xhq44jb2fzpc.com/user/pn.json")).json()).push(n),await client.put("user/pn.json",new Blob([JSON.stringify(o)],{type:"application/json"})),setTimeout(async()=>{s.style.display="none";var e={userEmail:curemail,coins:20,transactions:[{type:"credit",amount:20,description:"初始币奖励",date:(e=new Date,new Date(e.getTime()+288e5).toISOString().replace("T"," ").substring(0,19))}]},t=new Blob([JSON.stringify(!0)],{type:"application/json"}),t=(await client.put(`user/${curemail}/coin/verify.json`,t),new Blob([JSON.stringify(e)],{type:"application/json"}));await client.put(`user/${curemail}/coin/list.json`,t),l(e)},2e3)):d.innerText="验证码错误,请重新输入。"}catch(e){d.innerText="验证时出错,请稍后重试。"}else d.innerText="请输入手机号和验证码。"})}document.getElementById("cancel-btn").addEventListener("click",function(){document.getElementById("verification-modal").style.display="none"}),async function(){try{var e=`https://download.xn--xhq44jb2fzpc.com/user/${curemail}/coin/verify.json`,t=await(await fetchNoCache(e)).json();if(console.log("Verify Response: ",t),!0!==t)throw new Error("Verification required");var n=`https://download.xn--xhq44jb2fzpc.com/user/${curemail}/coin/list.json`;l(await(await fetchNoCache(n)).json())}catch(e){console.error("Error in initializeCoinSystem: ",e);{let e=document.getElementById("coin-content"),t=(e.innerHTML=`
<p>您需要进行手机验证以解锁东币系统下载某些资源时会花费东币而投稿审核通过后可以获得东</p>
<p><strong>请注意</strong><strong></strong></p>
<button id="first-verify-btn">验证</button>
`,document.getElementById("first-verify-btn"));t.style.display="block",t.style.margin="0 auto",t.style.padding="10px 20px",t.style.backgroundColor="#007BFF",t.style.color="#fff",t.style.border="none",t.style.borderRadius="4px",t.style.cursor="pointer",t.style.textAlign="center",t.onmouseover=function(){t.style.backgroundColor="#0056b3"},t.onmouseout=function(){t.style.backgroundColor="#007BFF"},t.onmousedown=function(){t.style.backgroundColor="#003f7f"},document.body.classList.contains("dark")&&(t.style.backgroundColor="#444",t.style.color="#fff");t.addEventListener("click",o);return}}}()}

View File

@ -484,7 +484,7 @@ createCardSection('xzttk', '选择题');
<div class="entry-content">
<p>标签:#金币 #可预览 #PDF #数值分析 #数分 #课本 #教材
此处收录了《数值分析》课本编者为张铁、邵新慧高质量PDF格式文字可复制、查找
下载该资源需要10
下载该资源需要10
点击下载 下载安全保护中 3秒后将开始下载... 封面如下:
页面已提供在线预览,推荐您使用全屏预览。
温馨提示手机端可能无法正常预览PDF文件。请使用电脑浏览器访问。</p>
@ -519,7 +519,7 @@ createCardSection('xzttk', '选择题');
<div class="entry-content">
<p>标签:#可预览 #PDF #PPT #公路交通 #选修课
此处收录了《公路交通与驾驶技术》完整版PPT文件内文字可复制、查找
下载该资源需要8
下载该资源需要8
点击下载 下载安全保护中 3秒后将开始下载... 页面已提供在线预览,推荐您使用全屏预览。
温馨提示手机端可能无法正常预览PDF文件。请使用电脑浏览器访问。</p>
</div>
@ -553,7 +553,7 @@ createCardSection('xzttk', '选择题');
<div class="entry-content">
<p>标签:#可预览 #PDF #习概 #课本 #教材 #2023
此处收录了《习近平新时代中国特色社会主义思想概论》课本高质量PDF格式文字可复制、查找
下载该资源需要5
下载该资源需要5
点击下载 下载安全保护中 3秒后将开始下载... 页面已提供在线预览,推荐您使用全屏预览。
温馨提示手机端可能无法正常预览PDF文件。请使用电脑浏览器访问。</p>
</div>
@ -583,7 +583,7 @@ createCardSection('xzttk', '选择题');
<div class="entry-content">
<p>标签:#可预览 #PDF #马原 #课本 #教材 #2023 #OCR
此处收录了《马克思主义基本原理》课本2023版OCR版本文字可复制、查找
下载该资源需要5
下载该资源需要5
点击下载 下载安全保护中 3秒后将开始下载... 页面已提供在线预览,推荐您使用全屏预览。
温馨提示手机端可能无法正常预览PDF文件。请使用电脑浏览器访问。</p>
</div>

View File

@ -56,7 +56,7 @@
<guid>https://xn--xhq44jb2fzpc.com/resources/%E6%95%B0%E5%80%BC%E5%88%86%E6%9E%90%E8%AF%BE%E6%9C%AC/</guid>
<description>标签:#金币 #可预览 #PDF #数值分析 #数分 #课本 #教材
此处收录了《数值分析》课本编者为张铁、邵新慧高质量PDF格式文字可复制、查找
下载该资源需要10
下载该资源需要10
点击下载 下载安全保护中 3秒后将开始下载... 封面如下:
页面已提供在线预览,推荐您使用全屏预览。
温馨提示手机端可能无法正常预览PDF文件。请使用电脑浏览器访问。</description>
@ -68,7 +68,7 @@
<guid>https://xn--xhq44jb2fzpc.com/resources/%E5%85%AC%E8%B7%AF%E4%BA%A4%E9%80%9Appt/</guid>
<description>标签:#可预览 #PDF #PPT #公路交通 #选修课
此处收录了《公路交通与驾驶技术》完整版PPT文件内文字可复制、查找
下载该资源需要8
下载该资源需要8
点击下载 下载安全保护中 3秒后将开始下载... 页面已提供在线预览,推荐您使用全屏预览。
温馨提示手机端可能无法正常预览PDF文件。请使用电脑浏览器访问。</description>
</item>
@ -79,7 +79,7 @@
<guid>https://xn--xhq44jb2fzpc.com/resources/%E4%B9%A0%E6%A6%82%E8%AF%BE%E6%9C%AC/</guid>
<description>标签:#可预览 #PDF #习概 #课本 #教材 #2023
此处收录了《习近平新时代中国特色社会主义思想概论》课本高质量PDF格式文字可复制、查找
下载该资源需要5
下载该资源需要5
点击下载 下载安全保护中 3秒后将开始下载... 页面已提供在线预览,推荐您使用全屏预览。
温馨提示手机端可能无法正常预览PDF文件。请使用电脑浏览器访问。</description>
</item>
@ -90,7 +90,7 @@
<guid>https://xn--xhq44jb2fzpc.com/resources/%E9%A9%AC%E5%8E%9F%E8%AF%BE%E6%9C%AC/</guid>
<description>标签:#可预览 #PDF #马原 #课本 #教材 #2023 #OCR
此处收录了《马克思主义基本原理》课本2023版OCR版本文字可复制、查找
下载该资源需要5
下载该资源需要5
点击下载 下载安全保护中 3秒后将开始下载... 页面已提供在线预览,推荐您使用全屏预览。
温馨提示手机端可能无法正常预览PDF文件。请使用电脑浏览器访问。</description>
</item>

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

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