diff --git a/backend/api-gateway/kong.yml b/backend/api-gateway/kong.yml index 15b3b331..5ae3921d 100644 --- a/backend/api-gateway/kong.yml +++ b/backend/api-gateway/kong.yml @@ -115,6 +115,10 @@ services: paths: - /api/v1/mpc strip_path: false + - name: mpc-party-api + paths: + - /api/v1/mpc-party + strip_path: false # --------------------------------------------------------------------------- # Leaderboard Service - 排行榜服务 diff --git a/backend/services/identity-service/src/infrastructure/external/mpc/mpc-client.service.ts b/backend/services/identity-service/src/infrastructure/external/mpc/mpc-client.service.ts index bb52bdd8..0c214717 100644 --- a/backend/services/identity-service/src/infrastructure/external/mpc/mpc-client.service.ts +++ b/backend/services/identity-service/src/infrastructure/external/mpc/mpc-client.service.ts @@ -107,7 +107,7 @@ export class MpcClientService { // 调用 mpc-service 的 keygen 同步接口 const response = await firstValueFrom( this.httpService.post( - `${this.mpcServiceUrl}/mpc-party/keygen/participate-sync`, + `${this.mpcServiceUrl}/api/v1/mpc-party/keygen/participate-sync`, { sessionId: request.sessionId, partyId: 'server-party', @@ -157,7 +157,7 @@ export class MpcClientService { // 调用 mpc-service 的 signing 同步接口 const response = await firstValueFrom( this.httpService.post( - `${this.mpcServiceUrl}/mpc-party/signing/participate-sync`, + `${this.mpcServiceUrl}/api/v1/mpc-party/signing/participate-sync`, { sessionId: request.sessionId, partyId: 'server-party',