diff --git a/backend/services/planting-service/src/infrastructure/external/identity-service.client.ts b/backend/services/planting-service/src/infrastructure/external/identity-service.client.ts index a60deb3d..03b21612 100644 --- a/backend/services/planting-service/src/infrastructure/external/identity-service.client.ts +++ b/backend/services/planting-service/src/infrastructure/external/identity-service.client.ts @@ -153,11 +153,12 @@ export class IdentityServiceClient { `getUserDetailBySequence(${accountSequence})`, async () => { const response = await firstValueFrom( - this.httpService.get( + this.httpService.get<{ success: boolean; data: UserDetailInfo }>( `${this.baseUrl}/api/v1/internal/users/${accountSequence}/detail`, ), ); - return response.data; + // identity-service 的响应被 TransformInterceptor 包装为 { success, data } + return response.data?.data || null; }, ); } catch (error) {