From a801a46e76120ee11ebbab9998a704107e872914 Mon Sep 17 00:00:00 2001 From: hailin Date: Mon, 2 Mar 2026 22:50:52 -0800 Subject: [PATCH] =?UTF-8?q?fix(admin):=20=E4=BF=AE=E5=A4=8D=E6=8E=88?= =?UTF-8?q?=E6=9D=83=E7=85=A7=E7=89=87=E4=BB=A3=E7=90=86=E6=9C=AA=E8=A7=A3?= =?UTF-8?q?=E5=8C=85=E5=85=A8=E5=B1=80=E5=93=8D=E5=BA=94=E6=8B=A6=E6=88=AA?= =?UTF-8?q?=E5=99=A8=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit authorization-service 全局拦截器将响应包装为 {success, data, timestamp}, 代理服务需要从 response.data.data 取实际数据,而非 response.data。 Co-Authored-By: Claude Opus 4.6 --- .../src/authorization/authorization-proxy.service.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/services/admin-service/src/authorization/authorization-proxy.service.ts b/backend/services/admin-service/src/authorization/authorization-proxy.service.ts index 9b60895c..c0f6c83f 100644 --- a/backend/services/admin-service/src/authorization/authorization-proxy.service.ts +++ b/backend/services/admin-service/src/authorization/authorization-proxy.service.ts @@ -77,7 +77,10 @@ export class AuthorizationProxyService { const url = `/api/v1/authorization/self-apply-photos?${queryParams.toString()}`; this.logger.debug(`[getSelfApplyPhotos] 请求: ${url}`); const response = await this.httpClient.get(url); - const data = response.data; + // authorization-service 全局拦截器将响应包装为 {success, data, timestamp} + // 实际数据在 response.data.data 中 + const raw = response.data; + const data = raw?.data ?? raw; if (!data?.items?.length) { return { items: [], total: data?.total ?? 0, page, limit };