mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-09-22 16:00:51 +00:00
@@ -72,7 +72,9 @@ func StringDecrypt(text string) (string, error) {
|
||||
func StringDecryptWithKey(text, key string) (string, error) {
|
||||
defer func() {
|
||||
if r := recover(); r != nil {
|
||||
global.LOG.Errorf("A panic occurred during string decrypt with key, error message: %v", r)
|
||||
if global.LOG != nil {
|
||||
global.LOG.Errorf("A panic occurred during string decrypt with key, error message: %v", r)
|
||||
}
|
||||
}
|
||||
}()
|
||||
if len(text) == 0 {
|
||||
|
||||
Reference in New Issue
Block a user