From 651cbbb82445a46dd8ad4326daa8218470605722 Mon Sep 17 00:00:00 2001 From: Evan Date: Fri, 23 Dec 2022 22:26:10 +0900 Subject: [PATCH] fix wechat key --- config/config.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/config.go b/config/config.go index 836f214..6813f9d 100644 --- a/config/config.go +++ b/config/config.go @@ -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 }