refactor: slog替换logrus、日志操作统一、支持json、text格式等

This commit is contained in:
meilin.huang
2023-09-02 17:24:18 +08:00
parent d51cd4b289
commit 899a3a8243
47 changed files with 685 additions and 293 deletions

View File

@@ -32,7 +32,7 @@ func PwdAesEncrypt(password string) string {
return ""
}
aes := config.Conf.Aes
if aes == nil {
if aes.Key == "" {
return password
}
encryptPwd, err := aes.EncryptBase64([]byte(password))
@@ -46,7 +46,7 @@ func PwdAesDecrypt(encryptPwd string) string {
return ""
}
aes := config.Conf.Aes
if aes == nil {
if aes.Key == "" {
return encryptPwd
}
decryptPwd, err := aes.DecryptBase64(encryptPwd)