修改MiniDecryptData中的bug

This commit is contained in:
gazebo
2019-11-08 18:25:46 +08:00
parent a7164bb511
commit 128d719a9c
2 changed files with 11 additions and 7 deletions

View File

@@ -1,7 +1,6 @@
package weixin
import (
"encoding/base64"
"errors"
"strings"
@@ -55,7 +54,7 @@ func (a *MiniAuther) DecryptData(authInfo *auth2.AuthInfo, encryptedData, iv str
if err != nil {
return "", err
}
return base64.StdEncoding.EncodeToString(decryptedData), nil
return string(decryptedData), nil
}
func (a *MiniAuther) GetUserType() (userType int8) {