Skip to content

Commit 04cf250

Browse files
authored
json post base path bug fixed (#2647)
* json post base path bug fixed * added comment field to group client management
1 parent ac9ab82 commit 04cf250

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

web/assets/js/util/utils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class HttpUtil {
8181
},
8282
body: JSON.stringify(data),
8383
};
84-
const resp = await fetch(url, requestOptions);
84+
const resp = await fetch(basePath + url.replace(/^\/+|\/+$/g, ''), requestOptions);
8585
const response = await resp.json();
8686

8787
msg = this._respToMsg({data : response});

web/html/xui/client_modal.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,13 @@
3636
ok() {
3737
if (app.subSettings.enable && clientModal.group.isGroup && clientModal.group.canGroup) {
3838
const currentClient = clientModal.group.currentClient;
39-
const { limitIp, totalGB, expiryTime, reset, enable, subId, tgId, flow } = currentClient;
39+
const { limitIp, comment, totalGB, expiryTime, reset, enable, subId, tgId, flow } = currentClient;
4040
const uniqueEmails = clientModalApp.makeGroupEmailsUnique(clientModal.dbInbounds, currentClient.email, clientModal.group.clients);
4141

4242
clientModal.group.clients.forEach((client, index) => {
4343
client.email = uniqueEmails[index];
4444
client.limitIp = limitIp;
45+
client.comment = comment;
4546
client.totalGB = totalGB;
4647
client.expiryTime = expiryTime;
4748
client.reset = reset;

0 commit comments

Comments
 (0)