feat: add Yuheng ticket bind, trial SMS off, shared bindings

Ship ticket-exchange and bind/policy for Z13, keep trial binds SMS-free, allow shared company bindings, and align SyncPage plus sync docs.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
whm
2026-08-05 15:09:49 +08:00
parent f90245db9c
commit d195aa4804
19 changed files with 957 additions and 96 deletions

View File

@@ -19,10 +19,12 @@ Auth:
RequirePhoneBound: false
SMS:
Provider: dev
Provider: off
CodeTTLSeconds: 300 # 短信验证码有效期(秒)
ResendSeconds: 60
# DevFixedCode: "123456"
# 试运行未接短信平台false正式接入后改为 true且 Provider 勿用 off
RequireForBind: false
# 外公司部署:每次续费/延期生成独立签名文件(目录非固定单文件)
License:
@@ -39,6 +41,13 @@ License:
Agent:
CapsuleSecret: "dev-agent-capsule-secret"
RegisterSecret: "dev-only-change-me"
# 仅宇恒HMAC 凭票免登录(生产务必换 Secret并与宇恒后端共享
YuhengTicket:
Enabled: true
Secret: "dev-yuheng-ticket-secret-change-me"
Issuer: yuheng
Audience: aijianzhan
MaxAgeSec: 120
Storage:
Driver: local