Roc před 3 roky
rodič
revize
63bd710f8c
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      controller/wechat/wechat.go

+ 1 - 1
controller/wechat/wechat.go

@@ -103,7 +103,7 @@ func GetEncryptInfo(c *gin.Context) {
 		response.Fail("请重新登录", c)
 		return
 	}
-	decryptData, err := wx_app.GetDecryptInfo(userInfo.SessionKey, req.EncryptedData, req.Iv)
+	decryptData, err := wx_app.GetDecryptInfo(userInfo.RecordInfo.SessionKey, req.EncryptedData, req.Iv)
 	if err != nil {
 		response.Fail("获取失败,Err:"+err.Error(), c)
 		return