feat(server/reward): TG getChatMember 真校验 + ClaimTelegram + POST /tg/webhook

This commit is contained in:
wangjia
2026-07-13 07:54:46 +08:00
parent e23cd5e1bd
commit e26284d072
4 changed files with 214 additions and 5 deletions
+5 -4
View File
@@ -24,10 +24,11 @@ type Service struct {
cfg Config
now func() time.Time
rdb *redis.Client
tg tgConfig
memMu sync.Mutex
memTok map[string]int64
rdb *redis.Client
tg tgConfig
checker ChatMemberChecker
memMu sync.Mutex
memTok map[string]int64
}
func NewService(db *sql.DB, st *Store, g Granter, cfg Config, now func() time.Time) *Service {