rdluck 4 years ago
parent
commit
9b15cd2a62
1 changed files with 1 additions and 0 deletions
  1. 1 0
      controllers/wechat.go

+ 1 - 0
controllers/wechat.go

@@ -381,6 +381,7 @@ func (this *WechatController) GetUserInfo() {
 	}
 	userId := user.UserId
 	sessionKey := user.SessionKey
+	fmt.Println("sessionKey:",sessionKey)
 	userInfo, err := weapp.DecryptUserInfo(sessionKey, req.RawData, req.EncryptedData, req.Signature, req.Iv)
 	if err != nil {
 		br.Msg = "解析用户信息失败"