tvbox支持根据用户细分

This commit is contained in:
mtvpls
2026-02-25 11:56:27 +08:00
parent 6a494f8a1b
commit 0402828c4c
16 changed files with 583 additions and 78 deletions
+9
View File
@@ -0,0 +1,9 @@
import { randomBytes } from 'crypto';
/**
* 生成TVBox订阅token
* 使用crypto生成32位随机hex字符串
*/
export function generateTvboxToken(): string {
return randomBytes(16).toString('hex');
}