mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-12-29 02:38:45 +08:00
parent
41bae1e636
commit
f4587d0ae5
1 changed files with 3 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue