This commit is contained in:
Leufolium 2024-09-04 01:12:48 +08:00
parent a2529e96c8
commit 57a4fcc05e
1 changed files with 3 additions and 1 deletions

View File

@ -2,6 +2,7 @@ package importfunc
import (
"context"
"encoding/base64"
"fmt"
mycrypto "github.com/Leufolium/test/crypto"
@ -80,7 +81,8 @@ func ImportZoneMemberInfo() {
userId := acct.GetUserId()
name := acct.GetName()
mobilephonestr := util.DerefString(acct.MobilePhone)
dcrb, err := mycrypto.CryptoServiceInstance().DecryptByAES([]byte(mobilephonestr))
base64DecryptedBytes, _ := base64.StdEncoding.DecodeString(mobilephonestr)
dcrb, err := mycrypto.CryptoServiceInstance().DecryptByAES(base64DecryptedBytes)
if err != nil {
fmt.Printf("DecryptByAES : %v, mobielphonestr : %v", err, mobilephonestr)
return