fix wechat key
This commit is contained in:
parent
5b49c67c16
commit
651cbbb824
@ -141,8 +141,11 @@ func getEnv(key string) *string {
|
||||
if config == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
if len(value) > 0 {
|
||||
return &value
|
||||
} else if config.ChatGpt.WechatKeyword != nil {
|
||||
value = *config.ChatGpt.WechatKeyword
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user