This commit is contained in:
eric
2026-03-12 19:54:58 -05:00
parent 14bbd3b306
commit f66859c032
31 changed files with 1132 additions and 312 deletions

View File

@@ -30,8 +30,7 @@ export function getPayEnv(): PayEnv {
}
export function getRecommendedChannel(env: PayEnv): PayChannel {
if (env === "wechat") return "wxpay";
return "alipay";
return "wxpay"; // 默认微信支付PC/H5/微信内均优先)
}
export function mustUseWxPay(env: PayEnv): boolean {