From ee9a4f23ad71e11c399a391d352f978bbf706e90 Mon Sep 17 00:00:00 2001 From: Tristan Yang Date: Tue, 17 Jan 2023 09:35:25 +0800 Subject: [PATCH] fix: add port to license domain --- src/routes/setting/License/LicensePriceListModal.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/setting/License/LicensePriceListModal.tsx b/src/routes/setting/License/LicensePriceListModal.tsx index 9f8aa32a..1cefd5db 100644 --- a/src/routes/setting/License/LicensePriceListModal.tsx +++ b/src/routes/setting/License/LicensePriceListModal.tsx @@ -53,7 +53,7 @@ const LicensePriceListModal: FC = ({ closeModal }) => { user_limit: Number(user_limit), expire: type == "subscription" ? getExpireDay(sub_dur) : getExpireDay("year"), // 本地,则*通配符 - domain: location.hostname.startsWith("localhost") ? "*" : location.hostname + domain: location.host.startsWith("localhost") ? "*" : location.host }, cancel_url: location.href, success_url: `${location.origin}/#/cb/payment_success`