mirror of
				https://github.com/MHSanaei/3x-ui.git
				synced 2025-10-31 12:22:51 +00:00 
			
		
		
		
	bug fix - bulk Telegram ChatID
This commit is contained in:
		
							parent
							
								
									5202fb2df4
								
							
						
					
					
						commit
						907c30f743
					
				
					 3 changed files with 16 additions and 15 deletions
				
			
		|  | @ -1856,7 +1856,7 @@ Inbound.VmessSettings = class extends Inbound.Settings { | ||||||
|     } |     } | ||||||
| }; | }; | ||||||
| Inbound.VmessSettings.Vmess = class extends XrayCommonClass { | Inbound.VmessSettings.Vmess = class extends XrayCommonClass { | ||||||
|     constructor(id=RandomUtil.randomUUID(), email=RandomUtil.randomLowerAndNum(8),limitIp=0, totalGB=0, expiryTime=0, enable=true, tgId=0, subId=RandomUtil.randomLowerAndNum(16), reset=0) { |     constructor(id=RandomUtil.randomUUID(), email=RandomUtil.randomLowerAndNum(8),limitIp=0, totalGB=0, expiryTime=0, enable=true, tgId='', subId=RandomUtil.randomLowerAndNum(16), reset=0) { | ||||||
|         super(); |         super(); | ||||||
|         this.id = id; |         this.id = id; | ||||||
|         this.email = email; |         this.email = email; | ||||||
|  | @ -1947,7 +1947,7 @@ Inbound.VLESSSettings = class extends Inbound.Settings { | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| Inbound.VLESSSettings.VLESS = class extends XrayCommonClass { | Inbound.VLESSSettings.VLESS = class extends XrayCommonClass { | ||||||
|     constructor(id=RandomUtil.randomUUID(), flow='', email=RandomUtil.randomLowerAndNum(8),limitIp=0, totalGB=0, expiryTime=0, enable=true, tgId=0, subId=RandomUtil.randomLowerAndNum(16), reset=0) { |     constructor(id=RandomUtil.randomUUID(), flow='', email=RandomUtil.randomLowerAndNum(8),limitIp=0, totalGB=0, expiryTime=0, enable=true, tgId='', subId=RandomUtil.randomLowerAndNum(16), reset=0) { | ||||||
|         super(); |         super(); | ||||||
|         this.id = id; |         this.id = id; | ||||||
|         this.flow = flow; |         this.flow = flow; | ||||||
|  | @ -2072,7 +2072,7 @@ Inbound.TrojanSettings = class extends Inbound.Settings { | ||||||
|     } |     } | ||||||
| }; | }; | ||||||
| Inbound.TrojanSettings.Trojan = class extends XrayCommonClass { | Inbound.TrojanSettings.Trojan = class extends XrayCommonClass { | ||||||
|     constructor(password=RandomUtil.randomSeq(10), flow='', email=RandomUtil.randomLowerAndNum(8),limitIp=0, totalGB=0, expiryTime=0, enable=true, tgId=0, subId=RandomUtil.randomLowerAndNum(16), reset=0) { |     constructor(password=RandomUtil.randomSeq(10), flow='', email=RandomUtil.randomLowerAndNum(8),limitIp=0, totalGB=0, expiryTime=0, enable=true, tgId='', subId=RandomUtil.randomLowerAndNum(16), reset=0) { | ||||||
|         super(); |         super(); | ||||||
|         this.password = password; |         this.password = password; | ||||||
|         this.flow = flow; |         this.flow = flow; | ||||||
|  | @ -2217,7 +2217,7 @@ Inbound.ShadowsocksSettings = class extends Inbound.Settings { | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| Inbound.ShadowsocksSettings.Shadowsocks = class extends XrayCommonClass { | Inbound.ShadowsocksSettings.Shadowsocks = class extends XrayCommonClass { | ||||||
|     constructor(method='', password=RandomUtil.randomShadowsocksPassword(), email=RandomUtil.randomLowerAndNum(8),limitIp=0, totalGB=0, expiryTime=0, enable=true, tgId=0, subId=RandomUtil.randomLowerAndNum(16), reset=0) { |     constructor(method='', password=RandomUtil.randomShadowsocksPassword(), email=RandomUtil.randomLowerAndNum(8),limitIp=0, totalGB=0, expiryTime=0, enable=true, tgId='', subId=RandomUtil.randomLowerAndNum(16), reset=0) { | ||||||
|         super(); |         super(); | ||||||
|         this.method = method; |         this.method = method; | ||||||
|         this.password = password; |         this.password = password; | ||||||
|  |  | ||||||
|  | @ -58,13 +58,13 @@ | ||||||
|                     <template slot="title"> |                     <template slot="title"> | ||||||
|                         <span>{{ i18n "pages.inbounds.telegramDesc" }}</span> |                         <span>{{ i18n "pages.inbounds.telegramDesc" }}</span> | ||||||
|                     </template> |                     </template> | ||||||
|                     Telegram ID |                     Telegram ChatID | ||||||
|                     <a-icon type="question-circle"></a-icon> |                     <a-icon type="question-circle"></a-icon> | ||||||
|                 </a-tooltip> |                 </a-tooltip> | ||||||
|             </template> |             </template> | ||||||
|             <a-input-number style="width: 50%" v-model.trim="clientsBulkModal.tgId" min="0"></a-input-number> |             <a-input-number style="width: 50%" v-model="clientsBulkModal.tgId" min="0"></a-input-number> | ||||||
|         </a-form-item> |         </a-form-item> | ||||||
|         <a-form-item> |         <a-form-item v-if="app.ipLimitEnable"> | ||||||
|             <template slot="label"> |             <template slot="label"> | ||||||
|                 <a-tooltip> |                 <a-tooltip> | ||||||
|                     <template slot="title"> |                     <template slot="title"> | ||||||
|  | @ -104,8 +104,9 @@ | ||||||
|                     <a-icon type="question-circle"></a-icon> |                     <a-icon type="question-circle"></a-icon> | ||||||
|                 </a-tooltip> |                 </a-tooltip> | ||||||
|             </template> |             </template> | ||||||
|             <a-date-picker v-if="datepicker == 'gregorian'" :show-time="{ format: 'HH:mm:ss' }" format="YYYY-MM-DD HH:mm:ss" |             <a-date-picker v-if="datepicker == 'gregorian'" :show-time="{ format: 'HH:mm:ss' }" | ||||||
|                 :dropdown-class-name="themeSwitcher.currentTheme" v-model="clientsBulkModal.expiryTime"></a-date-picker> |                 format="YYYY-MM-DD HH:mm:ss" :dropdown-class-name="themeSwitcher.currentTheme" | ||||||
|  |                 v-model="clientsBulkModal.expiryTime"></a-date-picker> | ||||||
|             <persian-datepicker v-else placeholder='{{ i18n "pages.settings.datepickerPlaceholder" }}' |             <persian-datepicker v-else placeholder='{{ i18n "pages.settings.datepickerPlaceholder" }}' | ||||||
|                 value="clientsBulkModal.expiryTime" v-model="clientsBulkModal.expiryTime"></persian-datepicker> |                 value="clientsBulkModal.expiryTime" v-model="clientsBulkModal.expiryTime"></persian-datepicker> | ||||||
|         </a-form-item> |         </a-form-item> | ||||||
|  | @ -143,7 +144,7 @@ | ||||||
|         emailPrefix: "", |         emailPrefix: "", | ||||||
|         emailPostfix: "", |         emailPostfix: "", | ||||||
|         subId: "", |         subId: "", | ||||||
|         tgId: 0, |         tgId: '', | ||||||
|         flow: "", |         flow: "", | ||||||
|         delayedStart: false, |         delayedStart: false, | ||||||
|         reset: 0, |         reset: 0, | ||||||
|  | @ -165,7 +166,7 @@ | ||||||
|                 if (method == 4) newClient.email = ""; |                 if (method == 4) newClient.email = ""; | ||||||
|                 newClient.email += useNum ? prefix + i.toString() + postfix : prefix + postfix; |                 newClient.email += useNum ? prefix + i.toString() + postfix : prefix + postfix; | ||||||
|                 if (clientsBulkModal.subId.length > 0) newClient.subId = clientsBulkModal.subId; |                 if (clientsBulkModal.subId.length > 0) newClient.subId = clientsBulkModal.subId; | ||||||
|                 if (clientsBulkModal.tgId.length > 0) newClient.tgId = clientsBulkModal.tgId; |                 newClient.tgId = clientsBulkModal.tgId; | ||||||
|                 newClient.limitIp = clientsBulkModal.limitIp; |                 newClient.limitIp = clientsBulkModal.limitIp; | ||||||
|                 newClient._totalGB = clientsBulkModal.totalGB; |                 newClient._totalGB = clientsBulkModal.totalGB; | ||||||
|                 newClient._expiryTime = clientsBulkModal.expiryTime; |                 newClient._expiryTime = clientsBulkModal.expiryTime; | ||||||
|  | @ -200,7 +201,7 @@ | ||||||
|             this.emailPrefix = ""; |             this.emailPrefix = ""; | ||||||
|             this.emailPostfix = ""; |             this.emailPostfix = ""; | ||||||
|             this.subId = ""; |             this.subId = ""; | ||||||
|             this.tgId = 0; |             this.tgId = ''; | ||||||
|             this.flow = ""; |             this.flow = ""; | ||||||
|             this.dbInbound = new DBInbound(dbInbound); |             this.dbInbound = new DBInbound(dbInbound); | ||||||
|             this.inbound = dbInbound.toInbound(); |             this.inbound = dbInbound.toInbound(); | ||||||
|  |  | ||||||
|  | @ -255,7 +255,7 @@ | ||||||
|         </tr-info-row> |         </tr-info-row> | ||||||
|       </template> |       </template> | ||||||
|       <template v-if="app.tgBotEnable && infoModal.clientSettings.tgId"> |       <template v-if="app.tgBotEnable && infoModal.clientSettings.tgId"> | ||||||
|         <a-divider>Telegram ID</a-divider> |         <a-divider>Telegram ChatID</a-divider> | ||||||
|         <tr-info-row class="tr-info-row"> |         <tr-info-row class="tr-info-row"> | ||||||
|           <tr-info-title class="tr-info-title"> |           <tr-info-title class="tr-info-title"> | ||||||
|             <a-tag color="blue">[[ infoModal.clientSettings.tgId ]]</a-tag> |             <a-tag color="blue">[[ infoModal.clientSettings.tgId ]]</a-tag> | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue
	
	 mhsanaei
						mhsanaei