1
This commit is contained in:
@@ -37,6 +37,7 @@ func TestDecryptUserMsg(t *testing.T) {
|
||||
globals.SugarLogger.Debugf("data := %s", data)
|
||||
globals.SugarLogger.Debugf("err := %v", err)
|
||||
}
|
||||
|
||||
func DecryptUserMsg(sessionKey, iv, msg string) (string, error) {
|
||||
decodeMsg, err := base64.StdEncoding.DecodeString(msg)
|
||||
if err != nil {
|
||||
@@ -62,3 +63,7 @@ func DecryptUserMsg(sessionKey, iv, msg string) (string, error) {
|
||||
//return result.PhoneNumber, nil
|
||||
return string(userInfo), nil
|
||||
}
|
||||
|
||||
func TestCreateToken(t *testing.T) {
|
||||
api.GetToken()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user