feat(referral): 将推荐链最大深度从10层提升到1000层
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
1cc53bd533
commit
abc3b358a7
|
|
@ -7,7 +7,7 @@ import { ReferralChain } from '../value-objects';
|
|||
*/
|
||||
@Injectable()
|
||||
export class ReferralChainService {
|
||||
private static readonly MAX_DEPTH = 10;
|
||||
private static readonly MAX_DEPTH = 1000;
|
||||
|
||||
/**
|
||||
* 构建新用户的推荐链
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
* 存储从直接推荐人到根节点的用户ID列表
|
||||
*/
|
||||
export class ReferralChain {
|
||||
private static readonly MAX_DEPTH = 10;
|
||||
private static readonly MAX_DEPTH = 1000;
|
||||
|
||||
private constructor(public readonly chain: bigint[]) {
|
||||
if (chain.length > ReferralChain.MAX_DEPTH) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue