Revert "json post base path bug fixed (#2647)"

This reverts commit 04cf250a54.
This commit is contained in:
mhsanaei 2025-02-03 19:57:27 +01:00
parent 94d651fc93
commit 1743eaca4c
No known key found for this signature in database
GPG key ID: D875CD086CF668A0
2 changed files with 2 additions and 3 deletions

View file

@ -81,7 +81,7 @@ class HttpUtil {
}, },
body: JSON.stringify(data), body: JSON.stringify(data),
}; };
const resp = await fetch(basePath + url.replace(/^\/+|\/+$/g, ''), requestOptions); const resp = await fetch(url, requestOptions);
const response = await resp.json(); const response = await resp.json();
msg = this._respToMsg({data : response}); msg = this._respToMsg({data : response});

View file

@ -36,13 +36,12 @@
ok() { ok() {
if (app.subSettings.enable && clientModal.group.isGroup && clientModal.group.canGroup) { if (app.subSettings.enable && clientModal.group.isGroup && clientModal.group.canGroup) {
const currentClient = clientModal.group.currentClient; 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); const uniqueEmails = clientModalApp.makeGroupEmailsUnique(clientModal.dbInbounds, currentClient.email, clientModal.group.clients);
clientModal.group.clients.forEach((client, index) => { clientModal.group.clients.forEach((client, index) => {
client.email = uniqueEmails[index]; client.email = uniqueEmails[index];
client.limitIp = limitIp; client.limitIp = limitIp;
client.comment = comment;
client.totalGB = totalGB; client.totalGB = totalGB;
client.expiryTime = expiryTime; client.expiryTime = expiryTime;
client.reset = reset; client.reset = reset;