mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-06-08 14:14:19 +00:00
fix
This commit is contained in:
parent
7785a6f2d3
commit
0f76558bf8
2 changed files with 20 additions and 19 deletions
|
|
@ -1164,24 +1164,25 @@
|
||||||
if (!msg.success) {
|
if (!msg.success) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
with (msg.obj) {
|
const { expireDiff, trafficDiff, defaultCert, defaultKey, tgBotEnable,
|
||||||
this.expireDiff = expireDiff * 86400000;
|
subEnable, subTitle, subURI, subJsonURI, subJsonEnable,
|
||||||
this.trafficDiff = trafficDiff * 1073741824;
|
pageSize, remarkModel, datepicker, ipLimitEnable } = msg.obj;
|
||||||
this.defaultCert = defaultCert;
|
this.expireDiff = expireDiff * 86400000;
|
||||||
this.defaultKey = defaultKey;
|
this.trafficDiff = trafficDiff * 1073741824;
|
||||||
this.tgBotEnable = tgBotEnable;
|
this.defaultCert = defaultCert;
|
||||||
this.subSettings = {
|
this.defaultKey = defaultKey;
|
||||||
enable: subEnable,
|
this.tgBotEnable = tgBotEnable;
|
||||||
subTitle: subTitle,
|
this.subSettings = {
|
||||||
subURI: subURI,
|
enable: subEnable,
|
||||||
subJsonURI: subJsonURI,
|
subTitle: subTitle,
|
||||||
subJsonEnable: subJsonEnable,
|
subURI: subURI,
|
||||||
};
|
subJsonURI: subJsonURI,
|
||||||
this.pageSize = pageSize;
|
subJsonEnable: subJsonEnable,
|
||||||
this.remarkModel = remarkModel;
|
};
|
||||||
this.datepicker = datepicker;
|
this.pageSize = pageSize;
|
||||||
this.ipLimitEnable = ipLimitEnable;
|
this.remarkModel = remarkModel;
|
||||||
}
|
this.datepicker = datepicker;
|
||||||
|
this.ipLimitEnable = ipLimitEnable;
|
||||||
},
|
},
|
||||||
applyShareQuotaPooling(dbInbounds) {
|
applyShareQuotaPooling(dbInbounds) {
|
||||||
// For every client that opted into shareQuota and has a subId, replace
|
// For every client that opted into shareQuota and has a subId, replace
|
||||||
|
|
|
||||||
|
|
@ -835,7 +835,7 @@ func (s *InboundService) writeBackClientSubID(sourceInboundID int, sourceProtoco
|
||||||
}
|
}
|
||||||
|
|
||||||
settingsBytes, err := json.Marshal(map[string][]model.Client{
|
settingsBytes, err := json.Marshal(map[string][]model.Client{
|
||||||
"clients": []model.Client{client},
|
"clients": {client},
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return false, err
|
return false, err
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue