fix 支付收银台二维码URL

This commit is contained in:
lbw 2023-04-07 09:34:51 +08:00
parent ff4ea37f0b
commit e335aa19a2

View File

@ -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('获取支付信息失败');
}