fix(admin-service): 修复 BigInt 序列化错误

日志输出时不再使用 JSON.stringify 序列化包含 BigInt 的对象,
改为直接输出关键字段值,避免 "Do not know how to serialize a BigInt" 错误

🤖 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 2026-01-07 21:03:41 -08:00
parent 59469055c7
commit 1c5fd9eaad
1 changed files with 2 additions and 2 deletions

View File

@ -210,7 +210,7 @@ export class UserDetailController {
),
]);
this.logger.log(`[getPlantingLedger] 认种汇总: ${JSON.stringify(summary)}`);
this.logger.log(`[getPlantingLedger] 认种汇总: totalOrders=${summary?.totalOrders}, totalTreeCount=${summary?.totalTreeCount}, effectiveTreeCount=${summary?.effectiveTreeCount}`);
this.logger.log(`[getPlantingLedger] 认种流水条数: ${ledger.items.length}, total=${ledger.total}`);
return {
@ -276,7 +276,7 @@ export class UserDetailController {
),
]);
this.logger.log(`[getWalletLedger] 钱包汇总: ${JSON.stringify(summary)}`);
this.logger.log(`[getWalletLedger] 钱包汇总: usdtAvailable=${summary?.usdtAvailable}, dstAvailable=${summary?.dstAvailable}, hashpower=${summary?.hashpower}`);
this.logger.log(`[getWalletLedger] 钱包流水条数: ${ledger.items.length}, total=${ledger.total}`);
return {