diff --git a/web/html/common/qrcode_modal.html b/web/html/common/qrcode_modal.html index acef9811..e6b7b998 100644 --- a/web/html/common/qrcode_modal.html +++ b/web/html/common/qrcode_modal.html @@ -96,7 +96,7 @@ updated() { if (qrModal.client.subId){ qrModal.subId = qrModal.client.subId; - this.setQrCode("qrCode-sub",this.genSubLink(this.subId)); + this.setQrCode("qrCode-sub",this.genSubLink(qrModal.subId)); } qrModal.qrcodes.forEach((element,index) => { this.setQrCode("qrCode-"+index, element.link); diff --git a/web/html/xui/client_bulk_modal.html b/web/html/xui/client_bulk_modal.html index 48eb2cbc..e4c46cc0 100644 --- a/web/html/xui/client_bulk_modal.html +++ b/web/html/xui/client_bulk_modal.html @@ -158,8 +158,8 @@ newClient = clientsBulkModal.newClient(clientsBulkModal.dbInbound.protocol); if (method == 4) newClient.email = ""; newClient.email += useNum ? prefix + i.toString() + postfix : prefix + postfix; - newClient.subId = clientsBulkModal.subId; - newClient.tgId = clientsBulkModal.tgId; + if (clientsBulkModal.subId.length > 0) newClient.subId = clientsBulkModal.subId; + if (clientsBulkModal.tgId.length > 0) newClient.tgId = clientsBulkModal.tgId; newClient.limitIp = clientsBulkModal.limitIp; newClient._totalGB = clientsBulkModal.totalGB; newClient._expiryTime = clientsBulkModal.expiryTime;