优化下单流程

This commit is contained in:
2025-07-30 02:44:58 +08:00
parent 19fe9b4775
commit 5dd02be44b
12 changed files with 540 additions and 66 deletions

View File

@@ -97,7 +97,7 @@ export class PaymentHandler {
* 处理微信支付
*/
private static async handleWechatPay(result: WxPayResult): Promise<void> {
if (!result || !result.prepayId) {
if (!result) {
throw new Error('微信支付参数错误');
}