fix wechat key

This commit is contained in:
Evan 2022-12-23 22:26:10 +09:00
parent 5b49c67c16
commit 651cbbb824

View File

@ -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
}