dsh-bridge-gateway 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +250 -0
- package/LICENSE +21 -0
- package/README.en.md +408 -0
- package/README.md +430 -0
- package/client/build.mjs +43 -0
- package/client/client.js +5209 -0
- package/client/index.js +4967 -0
- package/cordis.patch.yml +4 -0
- package/docs/banner.jpg +0 -0
- package/docs/custom-tunnel.md +220 -0
- package/docs/feishu-usage.md +116 -0
- package/docs/fix-tunnel-sse-and-session-list.md +134 -0
- package/docs/platform-abstraction-design.md +473 -0
- package/docs/qq-usage.md +387 -0
- package/docs/screenshots/admin-lock-screen.jpg +0 -0
- package/docs/screenshots/feishu-bot-config.jpg +0 -0
- package/docs/screenshots/feishu-chat.jpg +0 -0
- package/docs/screenshots/lan-access.jpg +0 -0
- package/docs/screenshots/mobile-chat.jpg +0 -0
- package/docs/screenshots/mobile-drawer.jpg +0 -0
- package/docs/screenshots/mobile-remote-settings.jpg +0 -0
- package/docs/screenshots/mobile-settings-im.jpg +0 -0
- package/docs/screenshots/mobile-settings-lan.jpg +0 -0
- package/docs/screenshots/mobile-settings-security.jpg +0 -0
- package/docs/screenshots/mobile-settings-tunnel.jpg +0 -0
- package/docs/screenshots/mobile-workspace-picker.jpg +0 -0
- package/docs/screenshots/qq-bot-config.jpg +0 -0
- package/docs/screenshots/qq-chat.jpg +0 -0
- package/docs/screenshots/qq-group.jpg +0 -0
- package/docs/screenshots/qr-scan.jpg +0 -0
- package/docs/screenshots/remote-auth-login.jpg +0 -0
- package/docs/screenshots/remote-web-mobile.jpg +0 -0
- package/docs/screenshots/security-auth-config.jpg +0 -0
- package/docs/screenshots/telegram-bot-config.jpg +0 -0
- package/docs/screenshots/tunnel-access.jpg +0 -0
- package/docs/screenshots/wechat-bot-config.jpg +0 -0
- package/docs/screenshots/wechat-chat.jpg +0 -0
- package/docs/telegram-usage.md +93 -0
- package/docs/wechat-usage.md +104 -0
- package/lib/auth/login-template.js +382 -0
- package/lib/auth/manager.js +470 -0
- package/lib/bridge-rpc-constants.js +55 -0
- package/lib/bridge-rpc.js +553 -0
- package/lib/cloudflared-manager.mjs +345 -0
- package/lib/feishu/gateway.js +550 -0
- package/lib/feishu/index.js +222 -0
- package/lib/feishu/lark-bundled.mjs +125547 -0
- package/lib/feishu/node.js +409 -0
- package/lib/gateway/cert.js +214 -0
- package/lib/index.js +1963 -0
- package/lib/platform/base.js +156 -0
- package/lib/platform/conversation-bridge.js +1570 -0
- package/lib/platform/index.js +10 -0
- package/lib/platform/manager.js +74 -0
- package/lib/qq/gateway.js +616 -0
- package/lib/qq/index.js +309 -0
- package/lib/qq/node.js +533 -0
- package/lib/security/path-validator.js +208 -0
- package/lib/security/rate-limiter.js +93 -0
- package/lib/telegram/gateway.js +630 -0
- package/lib/telegram/index.js +213 -0
- package/lib/telegram/node.js +351 -0
- package/lib/tunnel-client.mjs +402 -0
- package/lib/wechat/gateway.js +960 -0
- package/lib/wechat/index.js +241 -0
- package/lib/wechat/media.js +281 -0
- package/lib/wechat/node.js +350 -0
- package/package.json +102 -0
|
@@ -0,0 +1,382 @@
|
|
|
1
|
+
// lib/auth/login-template.js
|
|
2
|
+
// DeepSeek Harness 官方质感高颜值远程访问认证登录页(零外部 CDN 依赖,响应式适配手机与桌面)
|
|
3
|
+
|
|
4
|
+
export function renderLoginPage({ error = '', hasPassword = true, locked = false } = {}) {
|
|
5
|
+
return `<!DOCTYPE html>
|
|
6
|
+
<html lang="zh-CN">
|
|
7
|
+
<head>
|
|
8
|
+
<meta charset="UTF-8">
|
|
9
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
|
10
|
+
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
11
|
+
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
|
12
|
+
<meta name="mobile-web-app-capable" content="yes">
|
|
13
|
+
<meta name="theme-color" content="#121413">
|
|
14
|
+
<title>远程访问认证 - DeepSeek Harness</title>
|
|
15
|
+
<style>
|
|
16
|
+
:root {
|
|
17
|
+
--bg: #121413;
|
|
18
|
+
--card-bg: rgba(26, 29, 27, 0.85);
|
|
19
|
+
--card-border: rgba(255, 255, 255, 0.08);
|
|
20
|
+
--brand: #22c55e;
|
|
21
|
+
--brand-hover: #16a34a;
|
|
22
|
+
--brand-glow: rgba(34, 197, 94, 0.25);
|
|
23
|
+
--text: #f3f4f6;
|
|
24
|
+
--text-secondary: #9ca3af;
|
|
25
|
+
--input-bg: rgba(18, 20, 19, 0.7);
|
|
26
|
+
--input-border: rgba(255, 255, 255, 0.12);
|
|
27
|
+
--error-bg: rgba(239, 68, 68, 0.12);
|
|
28
|
+
--error-border: rgba(239, 68, 68, 0.3);
|
|
29
|
+
--error-text: #f87171;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
* {
|
|
33
|
+
box-sizing: border-box;
|
|
34
|
+
margin: 0;
|
|
35
|
+
padding: 0;
|
|
36
|
+
-webkit-tap-highlight-color: transparent;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
body {
|
|
40
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
|
|
41
|
+
background-color: var(--bg);
|
|
42
|
+
background-image:
|
|
43
|
+
radial-gradient(circle at 50% 0%, rgba(34, 197, 94, 0.12) 0%, transparent 50%),
|
|
44
|
+
radial-gradient(circle at 100% 100%, rgba(16, 185, 129, 0.05) 0%, transparent 40%);
|
|
45
|
+
color: var(--text);
|
|
46
|
+
min-height: 100vh;
|
|
47
|
+
display: flex;
|
|
48
|
+
align-items: center;
|
|
49
|
+
justify-content: center;
|
|
50
|
+
padding: 20px;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.container {
|
|
54
|
+
width: 100%;
|
|
55
|
+
max-width: 400px;
|
|
56
|
+
perspective: 1000px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.card {
|
|
60
|
+
background: var(--card-bg);
|
|
61
|
+
backdrop-filter: blur(20px);
|
|
62
|
+
-webkit-backdrop-filter: blur(20px);
|
|
63
|
+
border: 1px solid var(--card-border);
|
|
64
|
+
border-radius: 20px;
|
|
65
|
+
padding: 36px 28px;
|
|
66
|
+
box-shadow:
|
|
67
|
+
0 20px 40px -15px rgba(0, 0, 0, 0.5),
|
|
68
|
+
0 0 0 1px rgba(255, 255, 255, 0.05);
|
|
69
|
+
animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
@keyframes fadeIn {
|
|
73
|
+
from { opacity: 0; transform: translateY(16px) scale(0.98); }
|
|
74
|
+
to { opacity: 1; transform: translateY(0) scale(1); }
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.logo-area {
|
|
78
|
+
text-align: center;
|
|
79
|
+
margin-bottom: 28px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.logo-icon {
|
|
83
|
+
width: 56px;
|
|
84
|
+
height: 56px;
|
|
85
|
+
margin: 0 auto 16px;
|
|
86
|
+
border-radius: 16px;
|
|
87
|
+
background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(16, 185, 129, 0.05));
|
|
88
|
+
border: 1px solid rgba(34, 197, 94, 0.3);
|
|
89
|
+
display: flex;
|
|
90
|
+
align-items: center;
|
|
91
|
+
justify-content: center;
|
|
92
|
+
box-shadow: 0 8px 16px -4px var(--brand-glow);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.logo-icon svg {
|
|
96
|
+
width: 32px;
|
|
97
|
+
height: 32px;
|
|
98
|
+
fill: var(--brand);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
h1 {
|
|
102
|
+
font-size: 20px;
|
|
103
|
+
font-weight: 600;
|
|
104
|
+
letter-spacing: -0.01em;
|
|
105
|
+
color: #ffffff;
|
|
106
|
+
margin-bottom: 6px;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.subtitle {
|
|
110
|
+
font-size: 13px;
|
|
111
|
+
color: var(--text-secondary);
|
|
112
|
+
line-height: 1.5;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.alert {
|
|
116
|
+
background: var(--error-bg);
|
|
117
|
+
border: 1px solid var(--error-border);
|
|
118
|
+
color: var(--error-text);
|
|
119
|
+
padding: 10px 14px;
|
|
120
|
+
border-radius: 10px;
|
|
121
|
+
font-size: 13px;
|
|
122
|
+
margin-bottom: 20px;
|
|
123
|
+
display: flex;
|
|
124
|
+
align-items: center;
|
|
125
|
+
gap: 8px;
|
|
126
|
+
animation: shake 0.4s ease;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
@keyframes shake {
|
|
130
|
+
0%, 100% { transform: translateX(0); }
|
|
131
|
+
20%, 60% { transform: translateX(-6px); }
|
|
132
|
+
40%, 80% { transform: translateX(6px); }
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.form-group {
|
|
136
|
+
margin-bottom: 20px;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
label {
|
|
140
|
+
display: block;
|
|
141
|
+
font-size: 12px;
|
|
142
|
+
font-weight: 500;
|
|
143
|
+
color: var(--text-secondary);
|
|
144
|
+
margin-bottom: 8px;
|
|
145
|
+
text-transform: uppercase;
|
|
146
|
+
letter-spacing: 0.05em;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.input-wrapper {
|
|
150
|
+
position: relative;
|
|
151
|
+
display: flex;
|
|
152
|
+
align-items: center;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
input[type="password"], input[type="text"] {
|
|
156
|
+
width: 100%;
|
|
157
|
+
background: var(--input-bg);
|
|
158
|
+
border: 1px solid var(--input-border);
|
|
159
|
+
border-radius: 12px;
|
|
160
|
+
padding: 14px 44px 14px 16px;
|
|
161
|
+
font-size: 15px;
|
|
162
|
+
color: #ffffff;
|
|
163
|
+
outline: none;
|
|
164
|
+
transition: all 0.2s ease;
|
|
165
|
+
font-family: inherit;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
input:focus {
|
|
169
|
+
border-color: var(--brand);
|
|
170
|
+
box-shadow: 0 0 0 3px var(--brand-glow);
|
|
171
|
+
background: rgba(18, 20, 19, 0.9);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.toggle-pwd {
|
|
175
|
+
position: absolute;
|
|
176
|
+
right: 12px;
|
|
177
|
+
background: none;
|
|
178
|
+
border: none;
|
|
179
|
+
cursor: pointer;
|
|
180
|
+
color: var(--text-secondary);
|
|
181
|
+
padding: 6px;
|
|
182
|
+
display: flex;
|
|
183
|
+
align-items: center;
|
|
184
|
+
justify-content: center;
|
|
185
|
+
border-radius: 6px;
|
|
186
|
+
transition: color 0.2s;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.toggle-pwd:hover {
|
|
190
|
+
color: #ffffff;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.submit-btn {
|
|
194
|
+
width: 100%;
|
|
195
|
+
background: var(--brand);
|
|
196
|
+
color: #0b150f;
|
|
197
|
+
border: none;
|
|
198
|
+
border-radius: 12px;
|
|
199
|
+
padding: 14px;
|
|
200
|
+
font-size: 15px;
|
|
201
|
+
font-weight: 600;
|
|
202
|
+
cursor: pointer;
|
|
203
|
+
display: flex;
|
|
204
|
+
align-items: center;
|
|
205
|
+
justify-content: center;
|
|
206
|
+
gap: 8px;
|
|
207
|
+
transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
|
|
208
|
+
box-shadow: 0 4px 12px var(--brand-glow);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.submit-btn:hover {
|
|
212
|
+
background: var(--brand-hover);
|
|
213
|
+
transform: translateY(-1px);
|
|
214
|
+
box-shadow: 0 6px 16px rgba(34, 197, 94, 0.35);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.submit-btn:active {
|
|
218
|
+
transform: translateY(1px);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.submit-btn:disabled {
|
|
222
|
+
opacity: 0.6;
|
|
223
|
+
cursor: not-allowed;
|
|
224
|
+
transform: none;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.spinner {
|
|
228
|
+
width: 18px;
|
|
229
|
+
height: 18px;
|
|
230
|
+
border: 2px solid rgba(11, 21, 15, 0.3);
|
|
231
|
+
border-top-color: #0b150f;
|
|
232
|
+
border-radius: 50%;
|
|
233
|
+
animation: spin 0.6s linear infinite;
|
|
234
|
+
display: none;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
@keyframes spin {
|
|
238
|
+
to { transform: rotate(360deg); }
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.footer {
|
|
242
|
+
text-align: center;
|
|
243
|
+
margin-top: 24px;
|
|
244
|
+
font-size: 12px;
|
|
245
|
+
color: rgba(255, 255, 255, 0.35);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.footer a {
|
|
249
|
+
color: var(--text-secondary);
|
|
250
|
+
text-decoration: none;
|
|
251
|
+
}
|
|
252
|
+
</style>
|
|
253
|
+
</head>
|
|
254
|
+
<body>
|
|
255
|
+
<div class="container">
|
|
256
|
+
<div class="card">
|
|
257
|
+
<div class="logo-area">
|
|
258
|
+
<div class="logo-icon">
|
|
259
|
+
<svg viewBox="0 0 24 24">
|
|
260
|
+
<path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11v8.8z"/>
|
|
261
|
+
</svg>
|
|
262
|
+
</div>
|
|
263
|
+
<h1>DeepSeek Harness</h1>
|
|
264
|
+
<div class="subtitle">远程安全访问认证</div>
|
|
265
|
+
</div>
|
|
266
|
+
|
|
267
|
+
<div id="errorAlert" class="alert" style="${error ? '' : 'display: none;'}">
|
|
268
|
+
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
269
|
+
<circle cx="12" cy="12" r="10"></circle>
|
|
270
|
+
<line x1="12" y1="8" x2="12" y2="12"></line>
|
|
271
|
+
<line x1="12" y1="16" x2="12.01" y2="16"></line>
|
|
272
|
+
</svg>
|
|
273
|
+
<span id="errorMsg">${error || ''}</span>
|
|
274
|
+
</div>
|
|
275
|
+
|
|
276
|
+
<form id="loginForm" onsubmit="return handleLogin(event)">
|
|
277
|
+
<div class="form-group">
|
|
278
|
+
<label for="password">访问密码 / PIN 码</label>
|
|
279
|
+
<div class="input-wrapper">
|
|
280
|
+
<input type="password" id="password" name="password" placeholder="请输入管理员设置的访问密码" autocomplete="current-password" autofocus required>
|
|
281
|
+
<button type="button" class="toggle-pwd" onclick="togglePassword()" title="显示/隐藏密码">
|
|
282
|
+
<svg id="eyeIcon" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
283
|
+
<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path>
|
|
284
|
+
<circle cx="12" cy="12" r="3"></circle>
|
|
285
|
+
</svg>
|
|
286
|
+
</button>
|
|
287
|
+
</div>
|
|
288
|
+
</div>
|
|
289
|
+
|
|
290
|
+
<button type="submit" id="submitBtn" class="submit-btn">
|
|
291
|
+
<span class="spinner" id="btnSpinner"></span>
|
|
292
|
+
<span id="btnText">解锁并访问</span>
|
|
293
|
+
</button>
|
|
294
|
+
</form>
|
|
295
|
+
|
|
296
|
+
<div style="margin-top: 16px; text-align: center;">
|
|
297
|
+
<a href="javascript:void(0)" onclick="toggleForgotGuide()" style="font-size: 12px; color: var(--text-secondary); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; transition: color 0.2s;">
|
|
298
|
+
❓ 忘记密码怎么办?
|
|
299
|
+
</a>
|
|
300
|
+
</div>
|
|
301
|
+
|
|
302
|
+
<div id="forgotGuide" style="display: none; margin-top: 14px; padding: 12px 14px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; font-size: 12px; line-height: 1.6; color: var(--text-secondary); text-align: left;">
|
|
303
|
+
<div style="font-weight: 600; color: #f3f4f6; margin-bottom: 4px;">🛟 找回与重置密码指引:</div>
|
|
304
|
+
<div>1. <strong>电脑本机免密直连</strong>:在运行本程序的电脑本机打开本控制台,物理机享有永久免密特权,可直接修改或清除密码。</div>
|
|
305
|
+
<div style="margin-top: 4px;">2. <strong>服务器救急指令</strong>:在宿主电脑终端执行 <code style="background: rgba(0,0,0,0.4); padding: 2px 6px; border-radius: 4px; color: #34d399; font-family: monospace;">touch ~/.dsh/dsh-bridge/reset-auth</code> 即可瞬间恢复初始免密状态。</div>
|
|
306
|
+
</div>
|
|
307
|
+
|
|
308
|
+
<div class="footer">
|
|
309
|
+
由 <a href="https://github.com/wenbin-wb/dsh-bridge" target="_blank">dsh-bridge</a> 安全网关守护
|
|
310
|
+
</div>
|
|
311
|
+
</div>
|
|
312
|
+
</div>
|
|
313
|
+
|
|
314
|
+
<script>
|
|
315
|
+
function toggleForgotGuide() {
|
|
316
|
+
const g = document.getElementById('forgotGuide');
|
|
317
|
+
g.style.display = g.style.display === 'none' ? 'block' : 'none';
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
function togglePassword() {
|
|
321
|
+
const input = document.getElementById('password');
|
|
322
|
+
const icon = document.getElementById('eyeIcon');
|
|
323
|
+
if (input.type === 'password') {
|
|
324
|
+
input.type = 'text';
|
|
325
|
+
icon.innerHTML = '<path d="M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"></path><line x1="1" y1="1" x2="23" y2="23"></line>';
|
|
326
|
+
} else {
|
|
327
|
+
input.type = 'password';
|
|
328
|
+
icon.innerHTML = '<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path><circle cx="12" cy="12" r="3"></circle>';
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
async function handleLogin(e) {
|
|
333
|
+
e.preventDefault();
|
|
334
|
+
const pwd = document.getElementById('password').value;
|
|
335
|
+
const btn = document.getElementById('submitBtn');
|
|
336
|
+
const spinner = document.getElementById('btnSpinner');
|
|
337
|
+
const btnText = document.getElementById('btnText');
|
|
338
|
+
const alert = document.getElementById('errorAlert');
|
|
339
|
+
const errorMsg = document.getElementById('errorMsg');
|
|
340
|
+
|
|
341
|
+
btn.disabled = true;
|
|
342
|
+
spinner.style.display = 'inline-block';
|
|
343
|
+
btnText.textContent = '验证中…';
|
|
344
|
+
alert.style.display = 'none';
|
|
345
|
+
|
|
346
|
+
try {
|
|
347
|
+
const resp = await fetch('/__dsh_bridge__/login', {
|
|
348
|
+
method: 'POST',
|
|
349
|
+
headers: { 'Content-Type': 'application/json' },
|
|
350
|
+
body: JSON.stringify({ password: pwd })
|
|
351
|
+
});
|
|
352
|
+
const data = await resp.json();
|
|
353
|
+
if (data.ok) {
|
|
354
|
+
btnText.textContent = '✓ 认证成功,正在跳转…';
|
|
355
|
+
setTimeout(() => {
|
|
356
|
+
window.location.reload();
|
|
357
|
+
}, 300);
|
|
358
|
+
} else {
|
|
359
|
+
errorMsg.textContent = data.error || '访问密码错误';
|
|
360
|
+
alert.style.display = 'flex';
|
|
361
|
+
alert.style.animation = 'none';
|
|
362
|
+
void alert.offsetWidth; // 触发 reflow
|
|
363
|
+
alert.style.animation = 'shake 0.4s ease';
|
|
364
|
+
btn.disabled = false;
|
|
365
|
+
spinner.style.display = 'none';
|
|
366
|
+
btnText.textContent = '解锁并访问';
|
|
367
|
+
document.getElementById('password').focus();
|
|
368
|
+
document.getElementById('password').select();
|
|
369
|
+
}
|
|
370
|
+
} catch (err) {
|
|
371
|
+
errorMsg.textContent = '网络请求失败,请重试';
|
|
372
|
+
alert.style.display = 'flex';
|
|
373
|
+
btn.disabled = false;
|
|
374
|
+
spinner.style.display = 'none';
|
|
375
|
+
btnText.textContent = '解锁并访问';
|
|
376
|
+
}
|
|
377
|
+
return false;
|
|
378
|
+
}
|
|
379
|
+
</script>
|
|
380
|
+
</body>
|
|
381
|
+
</html>`;
|
|
382
|
+
}
|