微信小程序支付功能打通

This commit is contained in:
2026-07-13 00:07:17 +08:00
parent f2cdc0222d
commit 450dc44d0e
14 changed files with 73 additions and 28 deletions
@@ -16,7 +16,7 @@ export class PayRouterProvider implements IPayProvider {
return loadAppConfig().mockPay ? this.mock : this.wechat;
}
payOrder(orderId: bigint, openId?: string): Promise<PayOrderResult> {
return this.resolve().payOrder(orderId, openId);
payOrder(orderId: bigint, openId?: string, platform?: 'h5' | 'mini'): Promise<PayOrderResult> {
return this.resolve().payOrder(orderId, openId, platform);
}
}