This commit is contained in:
Leufolium 2024-07-28 18:10:26 +08:00
parent 32cd726c15
commit 05e04ecaaa
1 changed files with 5 additions and 2 deletions

View File

@ -665,10 +665,13 @@ func main() {
}
for _, account := range accounts {
base64DecryptedBytes, _ := base64.StdEncoding.DecodeString(*account.MobilePhone)
base64DecryptedBytes, err := base64.StdEncoding.DecodeString(*account.MobilePhone)
if err != nil {
fmt.Printf("DecodeString err :%v", err)
}
phone, err := cryptoService.DecryptByAES(base64DecryptedBytes)
if err != nil {
fmt.Printf("DecryptByAES err : %v", err)
fmt.Printf("DecryptByAES err :%v", err)
}
phoneStr := string(phone)
mid := account.GetMid()