This commit is contained in:
parent
a2529e96c8
commit
57a4fcc05e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue