微信SDK接通

This commit is contained in:
2026-07-01 19:56:44 +08:00
parent a1cbfc7241
commit aea1513836
38 changed files with 1610 additions and 92 deletions
@@ -1,3 +1,9 @@
import type { WechatJsapiPrepayParams } from '@dukang/shared-types';
export type PayOrderResult =
| { mode: 'mock'; externalNo: string }
| { mode: 'jsapi'; prepay: WechatJsapiPrepayParams };
export interface IPayProvider {
payOrder(orderId: bigint): Promise<{ externalNo: string }>;
payOrder(orderId: bigint, openId?: string): Promise<PayOrderResult>;
}