perf: 支付文案

This commit is contained in:
archer
2023-04-05 22:32:14 +08:00
parent 794a3698ad
commit 96fc917bad

View File

@@ -69,7 +69,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
data: '订单已过期'
});
} else {
throw new Error(payRes.trade_state_desc);
throw new Error(payRes?.trade_state_desc || '订单无效');
}
} catch (err) {
// console.log(err);