mirror of
https://gitee.com/log4j/pig-ui.git
synced 2024-12-22 12:58:55 +08:00
fix 支付收银台二维码URL
This commit is contained in:
parent
ff4ea37f0b
commit
e335aa19a2
@ -76,10 +76,11 @@ const getQr = async () => {
|
||||
try {
|
||||
if (type === '0') {
|
||||
const res = await useBuyApi(amount);
|
||||
return res.params; // 直接返回购买 API 返回的二维码链接地址
|
||||
url.value = res.params; // 直接返回购买 API 返回的二维码链接地址
|
||||
} else {
|
||||
const tenantId = Session.getTenant();
|
||||
url.value = `${protocol}//${host}/admin/goods/buy?amount=${amount}&TENANT-ID=${tenantId}`; // 返回商品购买的二维码链接地址
|
||||
}
|
||||
const tenantId = Session.getTenant();
|
||||
return `${protocol}//${host}/admin/goods/buy?amount=${amount}&TENANT-ID=${tenantId}`; // 返回商品购买的二维码链接地址
|
||||
} catch (err) {
|
||||
throw new Error('获取支付信息失败');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user