mirror of
https://github.com/alireza0/x-ui.git
synced 2026-10-21 11:11:47 +00:00
[sub] support client-side group name
This commit is contained in:
parent
7adc8755f8
commit
da5253d98c
3 changed files with 3 additions and 3 deletions
|
|
@ -704,7 +704,7 @@ func (s *SubService) genRemark(inbound *model.Inbound, email string, extra strin
|
|||
// Get remained days
|
||||
if statsExist {
|
||||
if !stats.Enable {
|
||||
return "N/A"
|
||||
return fmt.Sprintf("⛔️N/A-%s", strings.Join(remark, "-"))
|
||||
}
|
||||
if vol := stats.Total - (stats.Up + stats.Down); vol > 0 {
|
||||
remark = append(remark, fmt.Sprintf("%s%s", common.FormatTraffic(vol), "📊"))
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@
|
|||
},
|
||||
genSubLink(subID) {
|
||||
const { domain: host, port, tls: isTLS, path: base } = app.subSettings;
|
||||
return buildURL({ host, port, isTLS, base, path: subID });
|
||||
return buildURL({ host, port, isTLS, base, path: subID+'?name='+subID });
|
||||
}
|
||||
},
|
||||
updated() {
|
||||
|
|
|
|||
|
|
@ -291,7 +291,7 @@
|
|||
},
|
||||
genSubLink(subID) {
|
||||
const { domain: host, port, tls: isTLS, path: base } = app.subSettings;
|
||||
return buildURL({ host, port, isTLS, base, path: subID });
|
||||
return buildURL({ host, port, isTLS, base, path: subID+'?name='+subID });
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue