diff --git a/resources/线性代数/index.html b/resources/线性代数/index.html index c36dc2b..9f12398 100644 --- a/resources/线性代数/index.html +++ b/resources/线性代数/index.html @@ -458,8 +458,8 @@

答案

- - + +
@@ -469,10 +469,12 @@ try { const response = await fetch('https://emberimg.oss-cn-beijing.aliyuncs.com/password/h.json'); const data = await response.json(); - const correctHash = data.hash; - + const correctHashes = data.hashes; + const passwordHash = CryptoJS.SHA256(password).toString(); - if (passwordHash === correctHash) { + const isValid = correctHashes.includes(passwordHash); + + if (isValid) { const content = document.getElementById('content-' + id); content.style.display = 'block'; } else { @@ -484,11 +486,7 @@ } } - +

2020-2021秋季学期试卷

@@ -501,8 +499,8 @@

答案

- - + +
@@ -512,10 +510,12 @@ try { const response = await fetch('https://emberimg.oss-cn-beijing.aliyuncs.com/password/h.json'); const data = await response.json(); - const correctHash = data.hash; - + const correctHashes = data.hashes; + const passwordHash = CryptoJS.SHA256(password).toString(); - if (passwordHash === correctHash) { + const isValid = correctHashes.includes(passwordHash); + + if (isValid) { const content = document.getElementById('content-' + id); content.style.display = 'block'; } else { @@ -527,11 +527,7 @@ } } - +

2020-2021春季学期试卷

@@ -544,8 +540,8 @@

答案

- - + +
@@ -555,10 +551,12 @@ try { const response = await fetch('https://emberimg.oss-cn-beijing.aliyuncs.com/password/h.json'); const data = await response.json(); - const correctHash = data.hash; - + const correctHashes = data.hashes; + const passwordHash = CryptoJS.SHA256(password).toString(); - if (passwordHash === correctHash) { + const isValid = correctHashes.includes(passwordHash); + + if (isValid) { const content = document.getElementById('content-' + id); content.style.display = 'block'; } else { @@ -570,11 +568,7 @@ } } - +

2019-2020秋季学期试卷