Files
device-voice-h5/utils/payment-attempt.js
luo e82b0ab5da
All checks were successful
构建并部署前端到生产环境 / build-and-deploy (push) Successful in 4m41s
fix:微信支付
2026-09-23 09:32:48 +08:00

10 lines
340 B
JavaScript

export const isUnknownPaymentResult = (error) => Boolean(error?.paymentResultUnknown);
export const getPaymentErrorMessage = (error, fallback = '支付失败,请稍后重试') => {
if (isUnknownPaymentResult(error)) {
return '支付结果未知,请稍后查看订单状态';
}
return error?.msg || error?.message || fallback;
};