diff --git a/Directory.Build.props b/Directory.Build.props
index b96a9dd..6254afd 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -8,7 +8,7 @@
- 6.0.22
+ 7.0.11
alpha
diff --git a/WeixinAuth.sln b/WeixinAuth.sln
index 1a5d6ae..25de876 100644
--- a/WeixinAuth.sln
+++ b/WeixinAuth.sln
@@ -28,6 +28,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WeixinAuth.UnitTest_3_1", "
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WeixinAuth.UnitTest_5_0", "test\WeixinAuth.UnitTest_5_0\WeixinAuth.UnitTest_5_0.csproj", "{B812C99A-70DF-4EB6-95B6-E3B8CECE5A3A}"
EndProject
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "QQConnect.UnitTest_6_0", "..\Myvas.AspNetCore.Authentication.QQConnect\test\QQConnect.UnitTest_6_0\QQConnect.UnitTest_6_0.csproj", "{5198DC01-2C6E-461C-A051-E9F0AF1A8640}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -50,6 +52,10 @@ Global
{B812C99A-70DF-4EB6-95B6-E3B8CECE5A3A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B812C99A-70DF-4EB6-95B6-E3B8CECE5A3A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B812C99A-70DF-4EB6-95B6-E3B8CECE5A3A}.Release|Any CPU.Build.0 = Release|Any CPU
+ {5198DC01-2C6E-461C-A051-E9F0AF1A8640}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {5198DC01-2C6E-461C-A051-E9F0AF1A8640}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {5198DC01-2C6E-461C-A051-E9F0AF1A8640}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {5198DC01-2C6E-461C-A051-E9F0AF1A8640}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
@@ -59,6 +65,7 @@ Global
{94ABBE67-3755-4DD1-A25E-2407FB32C60E} = {73FCFCF4-3A1C-4D4D-939A-9CABDC2341DC}
{688F627F-FF2D-4FE4-BAA7-BD94C139798B} = {73FCFCF4-3A1C-4D4D-939A-9CABDC2341DC}
{B812C99A-70DF-4EB6-95B6-E3B8CECE5A3A} = {73FCFCF4-3A1C-4D4D-939A-9CABDC2341DC}
+ {5198DC01-2C6E-461C-A051-E9F0AF1A8640} = {73FCFCF4-3A1C-4D4D-939A-9CABDC2341DC}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {2AEDFD1F-BBE1-4727-9978-2FB04DCE84AF}
diff --git a/global.json b/global.json
index 88f12e1..9e390e5 100644
--- a/global.json
+++ b/global.json
@@ -1,6 +1,6 @@
{
"sdk": {
- "version": "6.0.100",
+ "version": "7.0.100",
"rollForward": "latestFeature"
}
}
\ No newline at end of file
diff --git a/src/WeixinAuth/Helpers/CompressionExtensions.cs b/src/WeixinAuth/Helpers/CompressionExtensions.cs
index 8e76f5b..6c16207 100644
--- a/src/WeixinAuth/Helpers/CompressionExtensions.cs
+++ b/src/WeixinAuth/Helpers/CompressionExtensions.cs
@@ -1,93 +1,86 @@
-using System;
-using System.Collections.Generic;
-using System.IO;
-using System.IO.Compression;
-using System.Linq;
-using System.Runtime.Serialization.Formatters.Binary;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace Myvas.AspNetCore.Authentication.WeixinAuth.Internal
-{
- ///
- /// ref. https://stackoverflow.com/questions/7343465/compression-decompression-string-with-c-sharp
- ///
- static internal class CompressionExtensions
- {
- public static async Task> Zip(this object obj)
- {
- byte[] bytes = obj.Serialize();
-
- using (MemoryStream msi = new MemoryStream(bytes))
- using (MemoryStream mso = new MemoryStream())
- {
- using (var gs = new GZipStream(mso, CompressionMode.Compress))
- await msi.CopyToAsync(gs);
-
- return mso.ToArray().AsEnumerable();
- }
- }
-
- public static async Task