Commit 96fc917b by archer

perf: 支付文案

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