Commit 96fc917b by archer

perf: 支付文案

parent 794a3698
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment