Add tgLang option

This commit is contained in:
Hamidreza Ghavami
2023-05-21 06:17:25 +04:30
parent f2394844ff
commit 60eb61bd60
4 changed files with 3 additions and 0 deletions

View File

@@ -179,6 +179,7 @@ class AllSetting {
this.tgRunTime = "@daily";
this.tgBotBackup = false;
this.tgCpu = "";
this.tgLang = "";
this.xrayTemplateConfig = "";
this.subEnable = false;
this.subListen = "";

View File

@@ -41,6 +41,7 @@ type AllSetting struct {
TgRunTime string `json:"tgRunTime" form:"tgRunTime"`
TgBotBackup bool `json:"tgBotBackup" form:"tgBotBackup"`
TgCpu int `json:"tgCpu" form:"tgCpu"`
TgLang string `json:"tgLang" form:"tgLang"`
XrayTemplateConfig string `json:"xrayTemplateConfig" form:"xrayTemplateConfig"`
TimeLocation string `json:"timeLocation" form:"timeLocation"`
SubEnable bool `json:"subEnable" form:"subEnable"`

View File

@@ -39,6 +39,7 @@ var defaultValueMap = map[string]string{
"tgRunTime": "@daily",
"tgBotBackup": "false",
"tgCpu": "0",
"tgLang": "en-US",
"subEnable": "false",
"subListen": "",
"subPort": "2096",