From e28934d7b8b778a609d86e93aca24c49ed6c7a7c Mon Sep 17 00:00:00 2001 From: zhaoxiaorong Date: Tue, 29 Jul 2025 09:48:53 +0800 Subject: [PATCH] fix --- crypto/aes/aes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/aes/aes.go b/crypto/aes/aes.go index bd848cd..2decd44 100644 --- a/crypto/aes/aes.go +++ b/crypto/aes/aes.go @@ -153,7 +153,7 @@ func generateKey(key []byte) (genKey []byte) { func AesKeyCheck(key string) (string, error) { // 从环境变量获取密钥 - keyHex := os.Getenv("RST_KEY") + keyHex := os.Getenv(key) if keyHex == "" { fmt.Println("环境变量 RST_KEY 未设置") return "", errors.New("环境变量 RST_KEY 未设置")