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:
hailin 2025-12-26 10:26:52 -08:00
parent 1cc53bd533
commit abc3b358a7
2 changed files with 2 additions and 2 deletions

View File

@ -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;
/**
*

View File

@ -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) {