diff --git a/src/utils/payment.ts b/src/utils/payment.ts index 7cb32c4..6ea1a41 100644 --- a/src/utils/payment.ts +++ b/src/utils/payment.ts @@ -191,7 +191,7 @@ export class PaymentHandler { // 后端字段可能叫 dealerId 或 storeId,这里都带上,服务端忽略未知字段即可。 // 这里做一次路径兼容(camel vs kebab),避免接口路径不一致导致整单失败。 const list = await this.listByCompatEndpoint( - ['/shop/shopStoreRider', '/shop/shop-store-rider'], + ['/shop/shop-store-rider', '/shop/shop-store-rider'], { dealerId: storeId, storeId: storeId, @@ -224,7 +224,7 @@ export class PaymentHandler { private static async getWarehouses(): Promise { if (this.warehousesCache) return this.warehousesCache; const list = await this.listByCompatEndpoint( - ['/shop/shopWarehouse', '/shop/shop-warehouse'], + ['/shop/shop-warehouse', '/shop/shop-warehouse'], {} ); const usable = (list || []).filter(w => w?.isDelete !== 1 && (w.status === undefined || w.status === 1));