From 1743eaca4c7fcd408287b838848fc6d71541470b Mon Sep 17 00:00:00 2001 From: mhsanaei Date: Mon, 3 Feb 2025 19:57:27 +0100 Subject: [PATCH] Revert "json post base path bug fixed (#2647)" This reverts commit 04cf250a547bb64265d256e7d15af7cea5ecfa67. --- web/assets/js/util/utils.js | 2 +- web/html/xui/client_modal.html | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/web/assets/js/util/utils.js b/web/assets/js/util/utils.js index 10825490..28ec95c7 100644 --- a/web/assets/js/util/utils.js +++ b/web/assets/js/util/utils.js @@ -81,7 +81,7 @@ class HttpUtil { }, body: JSON.stringify(data), }; - const resp = await fetch(basePath + url.replace(/^\/+|\/+$/g, ''), requestOptions); + const resp = await fetch(url, requestOptions); const response = await resp.json(); msg = this._respToMsg({data : response}); diff --git a/web/html/xui/client_modal.html b/web/html/xui/client_modal.html index f2ea30d0..0a877fea 100644 --- a/web/html/xui/client_modal.html +++ b/web/html/xui/client_modal.html @@ -36,13 +36,12 @@ ok() { if (app.subSettings.enable && clientModal.group.isGroup && clientModal.group.canGroup) { const currentClient = clientModal.group.currentClient; - const { limitIp, comment, totalGB, expiryTime, reset, enable, subId, tgId, flow } = currentClient; + const { limitIp, totalGB, expiryTime, reset, enable, subId, tgId, flow } = currentClient; const uniqueEmails = clientModalApp.makeGroupEmailsUnique(clientModal.dbInbounds, currentClient.email, clientModal.group.clients); clientModal.group.clients.forEach((client, index) => { client.email = uniqueEmails[index]; client.limitIp = limitIp; - client.comment = comment; client.totalGB = totalGB; client.expiryTime = expiryTime; client.reset = reset;