feat: accept CLIENT_API_KEY on /license page.

Users can paste the key from the seller instead of editing license.env; it persists in license_state.json.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-17 17:20:47 +08:00
parent 863da10d1f
commit 8eefc6cfd5
6 changed files with 91 additions and 32 deletions
+4 -3
View File
@@ -1,7 +1,8 @@
# LICENSE_API_URL / LICENSE_CLIENT_KEY
# 复制为仓库根目录 license.env(已 gitignore,与授权站 CLIENT_API_KEY 保持一致
# LICENSE_API_URL / LICENSE_CLIENT_KEY(可选)
# 复制为仓库根目录 license.env(已 gitignore)。
# CLIENT_API_KEY 也可直接在软件 /license 页填写,不必改本文件。
LICENSE_API_URL=https://sq.bz121.com
LICENSE_CLIENT_KEY=cm_user_sq_bz121_8f3a2c1d9e4b7a6f5d0e1b2c3a4f5e6
# LICENSE_CLIENT_KEY=
# LICENSE_OFFLINE_GRACE_HOURS=72
# LICENSE_DISABLED=false