fix(pre-planting): 修复 authorization-service API 路径错误

预种 client 使用 /internal/authorization/... 但 authorization-service
全局前缀为 api/v1,实际路由是 /api/v1/authorization/...。
路径不对导致所有请求 404 → catch → fallback → 全部进系统账户。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-03-01 02:04:09 -08:00
parent 530aeb2a6f
commit d880242807
1 changed files with 5 additions and 5 deletions

View File

@ -42,7 +42,7 @@ export class PrePlantingAuthorizationClient {
try { try {
const response = await firstValueFrom( const response = await firstValueFrom(
this.httpService.get<{ accountSequence: string }>( this.httpService.get<{ accountSequence: string }>(
`${this.baseUrl}/internal/authorization/community-reward-distribution`, `${this.baseUrl}/api/v1/authorization/community-reward-distribution`,
{ params: { accountSequence } }, { params: { accountSequence } },
), ),
); );
@ -75,7 +75,7 @@ export class PrePlantingAuthorizationClient {
try { try {
const response = await firstValueFrom( const response = await firstValueFrom(
this.httpService.get<{ distributions: AreaDistributionItem[] }>( this.httpService.get<{ distributions: AreaDistributionItem[] }>(
`${this.baseUrl}/internal/authorization/province-area-reward-distribution`, `${this.baseUrl}/api/v1/authorization/province-area-reward-distribution`,
{ params: { provinceCode, treeCount: 0 } }, { params: { provinceCode, treeCount: 0 } },
), ),
); );
@ -117,7 +117,7 @@ export class PrePlantingAuthorizationClient {
try { try {
const response = await firstValueFrom( const response = await firstValueFrom(
this.httpService.get<{ accountSequence: string }>( this.httpService.get<{ accountSequence: string }>(
`${this.baseUrl}/internal/authorization/province-team-reward-distribution`, `${this.baseUrl}/api/v1/authorization/province-team-reward-distribution`,
{ params: { accountSequence } }, { params: { accountSequence } },
), ),
); );
@ -150,7 +150,7 @@ export class PrePlantingAuthorizationClient {
try { try {
const response = await firstValueFrom( const response = await firstValueFrom(
this.httpService.get<{ distributions: AreaDistributionItem[] }>( this.httpService.get<{ distributions: AreaDistributionItem[] }>(
`${this.baseUrl}/internal/authorization/city-area-reward-distribution`, `${this.baseUrl}/api/v1/authorization/city-area-reward-distribution`,
{ params: { cityCode, treeCount: 0 } }, { params: { cityCode, treeCount: 0 } },
), ),
); );
@ -191,7 +191,7 @@ export class PrePlantingAuthorizationClient {
try { try {
const response = await firstValueFrom( const response = await firstValueFrom(
this.httpService.get<{ accountSequence: string }>( this.httpService.get<{ accountSequence: string }>(
`${this.baseUrl}/internal/authorization/city-team-reward-distribution`, `${this.baseUrl}/api/v1/authorization/city-team-reward-distribution`,
{ params: { accountSequence } }, { params: { accountSequence } },
), ),
); );