feat: license page uses per-customer client token wording.

Align redeem/validate UX with per-code tokens from the auth server.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-17 17:46:15 +08:00
parent 0b3b415328
commit 30a2efce3f
4 changed files with 22 additions and 22 deletions
+4 -4
View File
@@ -73,7 +73,7 @@
<body>
<div class="box">
<h1>软件授权</h1>
<p class="muted">复制设备 ID,联系微信 <strong>{{ wechat }}</strong> 获取 <strong>CLIENT_API_KEY</strong> 与激活码。授权站:{{ api_url }}</p>
<p class="muted">复制设备 ID,联系微信 <strong>{{ wechat }}</strong> 获取 <strong>客户密钥</strong> 与激活码。授权站:{{ api_url }}</p>
{% if message %}<p class="ok">{{ message }}</p>{% endif %}
{% if error %}<p class="err">{{ error }}</p>{% endif %}
@@ -85,9 +85,9 @@
<form method="post" action="/license">
<div class="row">
<label>CLIENT_API_KEY</label>
<input type="text" name="client_api_key" placeholder="{% if status.has_client_key %}已保存 {{ status.client_key_masked }},可留空或填写新密钥{% else %}粘贴卖家提供的 CLIENT_API_KEY{% endif %}" autocomplete="off" {% if not status.has_client_key %}required{% endif %}>
<div class="hint">与授权站后台「系统设置」中的密钥一致,本地保存后下次可留空。</div>
<label>客户密钥</label>
<input type="text" name="client_api_key" placeholder="{% if status.has_client_key %}已保存 {{ status.client_key_masked }},可留空或填写新密钥{% else %}粘贴卖家提供的客户密钥(与激活码一起发放){% endif %}" autocomplete="off" {% if not status.has_client_key %}required{% endif %}>
<div class="hint">每张激活码绑定独立密钥;兑换后本地保存,续费一般可留空。</div>
</div>
<div class="row">
<label>激活码</label>