This commit is contained in:
Rao 2025-04-21 19:09:04 +08:00
parent 240f122edb
commit bb91a86bb8
1 changed files with 2 additions and 2 deletions

View File

@ -68,8 +68,8 @@ export class ShareCodeService extends BaseService<Prisma.ShareCodeDelegate> {
private readonly logger = new Logger(ShareCodeService.name); private readonly logger = new Logger(ShareCodeService.name);
// 生成8位分享码使用易读的字符 // 生成8位分享码使用易读的字符
private readonly generateCode = customAlphabet( private readonly generateCode = customAlphabet(
'23456789ABCDEFGHJKLMNPQRSTUVWXYZ', '0123456789ABCDEFGHJKLMNPQRSTUVWXYZ',
8, 5,
); );
constructor(private readonly resourceService: ResourceService) { constructor(private readonly resourceService: ResourceService) {