From 210f1e2641d1699f4dd082505f27c43aba897b96 Mon Sep 17 00:00:00 2001 From: Ember Date: Wed, 4 Sep 2024 13:15:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=AD=A3=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/dlwithcoin.js | 12 ++++++------ resources/习概课本/index.html | 2 +- resources/公路交通ppt/index.html | 2 +- resources/数值分析课本/index.html | 2 +- resources/概率论/index.html | 2 +- resources/马原课本/index.html | 2 +- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/js/dlwithcoin.js b/js/dlwithcoin.js index 749c3b9..3a449c1 100644 --- a/js/dlwithcoin.js +++ b/js/dlwithcoin.js @@ -61,13 +61,13 @@ document.addEventListener("DOMContentLoaded", function() { // const linkId = "{{ .Get "id" }}"; // const objectKey = "{{ .Get "url" }}"; // 使用URL参数作为OSS对象的key // const popupId = "popup-" + linkId; - // const requiredCoins = {{ .Get "coin" | default 0 }}; // 获取需要扣除的金币数,默认为0 + // const requiredCoins = {{ .Get "coin" | default 0 }}; // 获取需要扣除的东币数,默认为0 // const resourceTitle = "{{ .Get "title" }}"; // 获取资源标题 const linkId = "aaa"; const objectKey = "bbb"; // 使用URL参数作为OSS对象的key const popupId = "popup-" + linkId; - const requiredCoins = 666; // 获取需要扣除的金币数,默认为0 + const requiredCoins = 666; // 获取需要扣除的东币数,默认为0 const resourceTitle = "ccc" const checkAndDownload = async () => { @@ -85,16 +85,16 @@ document.addEventListener("DOMContentLoaded", function() { try { const response = await fetchNoCache(coinListUrl); if (!response.ok) { - alert("您还未激活金币系统,请前往激活!"); + alert("您还未激活东币系统,请前往激活!"); window.location.href = "/submission"; return; } const data = await response.json(); if (data.coins < requiredCoins) { - alert(`您的金币数量不够!当前资源要求金币数:${requiredCoins};您的金币数:${data.coins}。`); + alert(`您的东币数量不够!当前资源要求东币数:${requiredCoins};您的东币数:${data.coins}。`); return; } else { - if (confirm(`当前下载操作花费:${requiredCoins}金币;您的金币:${data.coins}。是否继续?`)) { + if (confirm(`当前下载操作花费:${requiredCoins}东币;您的东币:${data.coins}。是否继续?`)) { data.coins -= requiredCoins; data.transactions.push({ type: "debit", @@ -114,7 +114,7 @@ document.addEventListener("DOMContentLoaded", function() { alert("无法处理您的请求,请稍后重试。"); } } else { - // 如果不需要金币,直接开始下载 + // 如果不需要东币,直接开始下载 startDownload(linkId, popupId, objectKey); } }; diff --git a/resources/习概课本/index.html b/resources/习概课本/index.html index 4c6a99d..a804bf1 100644 --- a/resources/习概课本/index.html +++ b/resources/习概课本/index.html @@ -467,7 +467,7 @@
diff --git a/resources/公路交通ppt/index.html b/resources/公路交通ppt/index.html index d12c44e..812054f 100644 --- a/resources/公路交通ppt/index.html +++ b/resources/公路交通ppt/index.html @@ -467,7 +467,7 @@
diff --git a/resources/数值分析课本/index.html b/resources/数值分析课本/index.html index 225016f..131f821 100644 --- a/resources/数值分析课本/index.html +++ b/resources/数值分析课本/index.html @@ -470,7 +470,7 @@
diff --git a/resources/概率论/index.html b/resources/概率论/index.html index ccd9829..2dc62ca 100644 --- a/resources/概率论/index.html +++ b/resources/概率论/index.html @@ -480,7 +480,7 @@
diff --git a/resources/马原课本/index.html b/resources/马原课本/index.html index 0f9b964..4022de2 100644 --- a/resources/马原课本/index.html +++ b/resources/马原课本/index.html @@ -463,7 +463,7 @@