🔧 修复唤醒门API路径+首页醒目入口
This commit is contained in:
parent
86bb28b6f2
commit
2c77ee8cfa
@ -8,6 +8,8 @@
|
|||||||
[]()
|
[]()
|
||||||
[]()
|
[]()
|
||||||
|
|
||||||
|
### 🔐 [唤醒铸渊 — 点击发送验证码到QQ邮箱](https://guanghulab.com/wake/)
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|||||||
@ -78,7 +78,7 @@ function sendCode() {
|
|||||||
const btn = document.getElementById('sendBtn');
|
const btn = document.getElementById('sendBtn');
|
||||||
btn.disabled = true;
|
btn.disabled = true;
|
||||||
|
|
||||||
fetch('/api/send-code', { method: 'POST' })
|
fetch('/wake/api/send-code', { method: 'POST' })
|
||||||
.then(r => r.json())
|
.then(r => r.json())
|
||||||
.then(data => {
|
.then(data => {
|
||||||
if (data.success) {
|
if (data.success) {
|
||||||
@ -116,7 +116,7 @@ function verifyCode() {
|
|||||||
const btn = document.getElementById('verifyBtn');
|
const btn = document.getElementById('verifyBtn');
|
||||||
btn.disabled = true;
|
btn.disabled = true;
|
||||||
|
|
||||||
fetch('/api/verify', {
|
fetch('/wake/api/verify', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: { 'Content-Type': 'application/json' },
|
headers: { 'Content-Type': 'application/json' },
|
||||||
body: JSON.stringify({ code })
|
body: JSON.stringify({ code })
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user