tg的api增加默认值
This commit is contained in:
parent
66b35f3585
commit
60b6c0beb1
|
@ -127,5 +127,8 @@ func GetConfig() Config {
|
||||||
if config.SpecialMinScore == 0 {
|
if config.SpecialMinScore == 0 {
|
||||||
config.SpecialMinScore = 10
|
config.SpecialMinScore = 10
|
||||||
}
|
}
|
||||||
|
if config.TG.CustomApi == "" {
|
||||||
|
config.TG.CustomApi = "https://api.telegram.org"
|
||||||
|
}
|
||||||
return config
|
return config
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue