This commit is contained in:
parent
a2529e96c8
commit
57a4fcc05e
|
@ -2,6 +2,7 @@ package importfunc
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
"encoding/base64"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
mycrypto "github.com/Leufolium/test/crypto"
|
mycrypto "github.com/Leufolium/test/crypto"
|
||||||
|
@ -80,7 +81,8 @@ func ImportZoneMemberInfo() {
|
||||||
userId := acct.GetUserId()
|
userId := acct.GetUserId()
|
||||||
name := acct.GetName()
|
name := acct.GetName()
|
||||||
mobilephonestr := util.DerefString(acct.MobilePhone)
|
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 {
|
if err != nil {
|
||||||
fmt.Printf("DecryptByAES : %v, mobielphonestr : %v", err, mobilephonestr)
|
fmt.Printf("DecryptByAES : %v, mobielphonestr : %v", err, mobilephonestr)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue