From cb85e10d8885f580c81677d508d38860b0f30a4d Mon Sep 17 00:00:00 2001 From: bootx Date: Mon, 20 Jul 2026 17:29:41 +0800 Subject: [PATCH] =?UTF-8?q?refactor(gateway):=20API=20=E5=89=8D=E7=BC=80?= =?UTF-8?q?=20/client/gateway=20=E6=94=B9=E4=B8=BA=20/unipay/gateway?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 对齐后端 H5 公开面路径迁移。 Co-authored-by: Cursor --- src/shared/api/gateway.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/shared/api/gateway.ts b/src/shared/api/gateway.ts index 84bdbe7..ec84686 100644 --- a/src/shared/api/gateway.ts +++ b/src/shared/api/gateway.ts @@ -57,7 +57,7 @@ export interface CashierItemPublic { /** 查询网关订单 */ export function getGatewayOrder(orderNo: string): Promise { return http.request({ - url: '/client/gateway/order', + url: '/unipay/gateway/order', method: RequestEnum.GET, params: { orderNo }, }, { @@ -78,7 +78,7 @@ export function getAggregateMeta(params: { runtime?: string }): Promise { return http.request({ - url: '/client/gateway/aggregate/meta', + url: '/unipay/gateway/aggregate/meta', method: RequestEnum.GET, params, }, { @@ -96,7 +96,7 @@ export function aggregatePay(data: { clientIp?: string }): Promise { return http.request({ - url: '/client/gateway/aggregate/pay', + url: '/unipay/gateway/aggregate/pay', method: RequestEnum.POST, data, }, { @@ -116,7 +116,7 @@ export function generateGatewayAuthUrl(data: { returnPath: string }): Promise { return http.request({ - url: '/client/gateway/auth/generate-url', + url: '/unipay/gateway/auth/generate-url', method: RequestEnum.POST, data, }, { @@ -131,7 +131,7 @@ export function listCashierItems(params: { clientEnv?: string }): Promise { return http.request({ - url: '/client/gateway/cashier/items', + url: '/unipay/gateway/cashier/items', method: RequestEnum.GET, params, }, { @@ -156,7 +156,7 @@ export function cashierPay(data: { clientIp?: string }): Promise { return http.request({ - url: '/client/gateway/cashier/pay', + url: '/unipay/gateway/cashier/pay', method: RequestEnum.POST, data: { ...data,