Roc 3 anni fa
parent
commit
63bd710f8c
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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