修复支付宝支付

This commit is contained in:
2026-09-16 16:27:56 +08:00
parent 605c2a569f
commit 685dbc030d
9 changed files with 265 additions and 133 deletions
+3
View File
@@ -263,6 +263,9 @@ const handleBuy = async () => {
product_code: product.value.code,
channel: channels.value.length > 0 ? channel.value : "",
pay_type: "",
// 支付宝同步回跳地址:必须是完整 http(s) 地址,且不能带 # 和自定义参数,
// 否则支付成功后收银台倒计时结束无处可跳、页面卡住,故取站点根路径
return_url: window.location.origin + window.location.pathname,
});
if (res.code !== 200) {
ElMessage.error(res.msg || "下单失败");