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