From 6216a1563ae18fcbfe1a2ef19652da3372c33b62 Mon Sep 17 00:00:00 2001 From: hailin Date: Sat, 27 Dec 2025 09:58:23 -0800 Subject: [PATCH] =?UTF-8?q?fix(identity-service):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=8A=A8=E6=80=81import=E5=AF=BC=E8=87=B4=E7=9A=84=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=E8=A7=A3=E6=9E=90=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将动态 import('@/domain/value-objects') 改为静态 import 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .../src/application/tasks/wallet-retry.task.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/backend/services/identity-service/src/application/tasks/wallet-retry.task.ts b/backend/services/identity-service/src/application/tasks/wallet-retry.task.ts index efb9d278..559614f3 100644 --- a/backend/services/identity-service/src/application/tasks/wallet-retry.task.ts +++ b/backend/services/identity-service/src/application/tasks/wallet-retry.task.ts @@ -27,6 +27,7 @@ import { USER_ACCOUNT_REPOSITORY, } from '@/domain/repositories/user-account.repository.interface'; import { Inject } from '@nestjs/common'; +import { UserId } from '@/domain/value-objects'; // Redis key prefix const KEYGEN_STATUS_PREFIX = 'keygen:status:'; @@ -290,9 +291,7 @@ export class WalletRetryTask { try { // 1. 获取用户账号信息 - const userIdObj = await import('@/domain/value-objects').then((m) => - m.UserId.create(BigInt(userId)), - ); + const userIdObj = UserId.create(BigInt(userId)); const account = await this.userRepository.findById(userIdObj); if (!account) {