add:添加短链接服务
Build docker and publish / build (20.15.1) (push) Has been cancelled

This commit is contained in:
2026-01-24 00:32:08 -08:00
parent a98fcbfe73
commit 1d81df6664
51 changed files with 2957 additions and 621 deletions
+10
View File
@@ -28,6 +28,7 @@ type Config struct {
Register RegisterConfig `yaml:"Register"`
Subscribe SubscribeConfig `yaml:"Subscribe"`
Invite InviteConfig `yaml:"Invite"`
Kutt KuttConfig `yaml:"Kutt"`
Telegram Telegram `yaml:"Telegram"`
Log Log `yaml:"Log"`
Trace trace.Config `yaml:"Trace"`
@@ -209,6 +210,15 @@ type InviteConfig struct {
GiftDays int64 `yaml:"GiftDays" default:"0"`
}
// KuttConfig Kutt 短链接服务配置
type KuttConfig struct {
Enable bool `yaml:"Enable" default:"false"` // 是否启用 Kutt 短链接
ApiURL string `yaml:"ApiURL" default:""` // Kutt API 地址
ApiKey string `yaml:"ApiKey" default:""` // Kutt API 密钥
TargetURL string `yaml:"TargetURL" default:""` // 目标注册页面基础 URL
Domain string `yaml:"Domain" default:""` // 短链接域名 (例如: getsapp.net)
}
type Telegram struct {
Enable bool `yaml:"Enable" default:"false"`
BotID int64 `yaml:"BotID" default:""`