feat: 通用授权后台、离线证、Waffo 支付页与仪表盘加强
支持多产品计划展示、LICOFF 离线签发、支付独立配置与调试,以及分析看板;同步更新 README 与集成文档。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
0966375076
commit
8cc2c83f9d
41 files changed
+3177
-332
No files matched your search
@@ -27,6 +27,9 @@ type Config struct {
|
||||
// JWT 配置
|
||||
JWTSecret string
|
||||
|
||||
// 离线许可证 Ed25519 seed(32 字节 hex;生产必须固定,勿轮换除非同步桌面公钥) // Logan.Li
|
||||
OfflineLicenseSeed string
|
||||
|
||||
// CORS 配置
|
||||
CORSOrigins []string
|
||||
}
|
||||
@@ -47,8 +50,9 @@ func Load() *Config {
|
||||
DBUser: getEnv("DB_USER", "root"),
|
||||
DBPassword: getEnv("DB_PASSWORD", ""),
|
||||
DBName: getEnv("DB_NAME", "db.sqlite3"),
|
||||
JWTSecret: getEnv("JWT_SECRET", ""),
|
||||
CORSOrigins: defaultCORSOrigins(),
|
||||
JWTSecret: getEnv("JWT_SECRET", ""),
|
||||
OfflineLicenseSeed: getEnv("OFFLINE_LICENSE_SEED", ""),
|
||||
CORSOrigins: defaultCORSOrigins(),
|
||||
}
|
||||
|
||||
if raw := strings.TrimSpace(os.Getenv("CORS_ORIGINS")); raw != "" {
|
||||
|
||||
Reference in new issue
Block a user