From 547d01e179e8bac41237873342042c0f7bfcf15d Mon Sep 17 00:00:00 2001 From: oneRain Date: Thu, 18 Feb 2021 11:20:29 +0800 Subject: [PATCH 1/2] fix: LCQuery.Get() support include --- Storage/Storage/LCQuery.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Storage/Storage/LCQuery.cs b/Storage/Storage/LCQuery.cs index c9396f7..b04d457 100644 --- a/Storage/Storage/LCQuery.cs +++ b/Storage/Storage/LCQuery.cs @@ -351,7 +351,14 @@ namespace LeanCloud.Storage { throw new ArgumentNullException(nameof(objectId)); } string path = $"classes/{ClassName}/{objectId}"; - Dictionary response = await LCApplication.HttpClient.Get>(path); + Dictionary queryParams = null; + string includes = Condition.BuildIncludes(); + if (!string.IsNullOrEmpty(includes)) { + queryParams = new Dictionary { + { "include", includes } + }; + } + Dictionary response = await LCApplication.HttpClient.Get>(path, queryParams: queryParams); return DecodeLCObject(response); } From bf5cf88a96ced47e2aa745fcb17c12debb7ab963 Mon Sep 17 00:00:00 2001 From: oneRain Date: Thu, 18 Feb 2021 11:33:27 +0800 Subject: [PATCH 2/2] release: 0.6.4 --- Common/Common-Unity/Common-Unity.csproj | 2 +- Common/Common/Common.csproj | 2 +- LiveQuery/LiveQuery-Unity/LiveQuery-Unity.csproj | 2 +- LiveQuery/LiveQuery.Test/LiveQuery.Test.csproj | 2 +- LiveQuery/LiveQuery/LiveQuery.csproj | 2 +- Realtime/Realtime-Unity/Realtime-Unity.csproj | 2 +- Realtime/Realtime.Test/Realtime.Test.csproj | 2 +- Realtime/Realtime/Realtime.csproj | 2 +- Sample/LiveQueryApp/LiveQueryApp.csproj | 2 +- Sample/RealtimeApp/RealtimeApp.csproj | 2 +- Storage/Storage-Unity/Storage-Unity.csproj | 2 +- Storage/Storage.Test/Storage.Test.csproj | 2 +- Storage/Storage/LCApplication.cs | 2 +- Storage/Storage/Storage.csproj | 2 +- csharp-sdk.sln | 2 +- 15 files changed, 15 insertions(+), 15 deletions(-) diff --git a/Common/Common-Unity/Common-Unity.csproj b/Common/Common-Unity/Common-Unity.csproj index 80858cb..3950982 100644 --- a/Common/Common-Unity/Common-Unity.csproj +++ b/Common/Common-Unity/Common-Unity.csproj @@ -2,7 +2,7 @@ netstandard2.0 - 0.6.3 + 0.6.4 Common diff --git a/Common/Common/Common.csproj b/Common/Common/Common.csproj index 0a43ec3..7965327 100644 --- a/Common/Common/Common.csproj +++ b/Common/Common/Common.csproj @@ -2,7 +2,7 @@ netstandard2.0 - 0.6.3 + 0.6.4 Common diff --git a/LiveQuery/LiveQuery-Unity/LiveQuery-Unity.csproj b/LiveQuery/LiveQuery-Unity/LiveQuery-Unity.csproj index 637d8c5..c54a0cb 100644 --- a/LiveQuery/LiveQuery-Unity/LiveQuery-Unity.csproj +++ b/LiveQuery/LiveQuery-Unity/LiveQuery-Unity.csproj @@ -3,7 +3,7 @@ netstandard2.0 true - 0.6.3 + 0.6.4 LiveQuery diff --git a/LiveQuery/LiveQuery.Test/LiveQuery.Test.csproj b/LiveQuery/LiveQuery.Test/LiveQuery.Test.csproj index df281ee..1915392 100644 --- a/LiveQuery/LiveQuery.Test/LiveQuery.Test.csproj +++ b/LiveQuery/LiveQuery.Test/LiveQuery.Test.csproj @@ -4,7 +4,7 @@ netcoreapp2.2 false - 0.6.3 + 0.6.4 diff --git a/LiveQuery/LiveQuery/LiveQuery.csproj b/LiveQuery/LiveQuery/LiveQuery.csproj index 041e188..194480b 100644 --- a/LiveQuery/LiveQuery/LiveQuery.csproj +++ b/LiveQuery/LiveQuery/LiveQuery.csproj @@ -2,7 +2,7 @@ netstandard2.0 - 0.6.3 + 0.6.4 true diff --git a/Realtime/Realtime-Unity/Realtime-Unity.csproj b/Realtime/Realtime-Unity/Realtime-Unity.csproj index 28e28db..c787767 100644 --- a/Realtime/Realtime-Unity/Realtime-Unity.csproj +++ b/Realtime/Realtime-Unity/Realtime-Unity.csproj @@ -2,7 +2,7 @@ netstandard2.0 - 0.6.3 + 0.6.4 true Realtime diff --git a/Realtime/Realtime.Test/Realtime.Test.csproj b/Realtime/Realtime.Test/Realtime.Test.csproj index 4c9e32b..f72f055 100644 --- a/Realtime/Realtime.Test/Realtime.Test.csproj +++ b/Realtime/Realtime.Test/Realtime.Test.csproj @@ -4,7 +4,7 @@ netcoreapp2.2 false - 0.6.3 + 0.6.4 diff --git a/Realtime/Realtime/Realtime.csproj b/Realtime/Realtime/Realtime.csproj index 815e590..939fd82 100644 --- a/Realtime/Realtime/Realtime.csproj +++ b/Realtime/Realtime/Realtime.csproj @@ -2,7 +2,7 @@ netstandard2.0 - 0.6.3 + 0.6.4 LeanCloud.Realtime true diff --git a/Sample/LiveQueryApp/LiveQueryApp.csproj b/Sample/LiveQueryApp/LiveQueryApp.csproj index eff4c37..58a668e 100644 --- a/Sample/LiveQueryApp/LiveQueryApp.csproj +++ b/Sample/LiveQueryApp/LiveQueryApp.csproj @@ -3,7 +3,7 @@ Exe netcoreapp3.0 - 0.6.3 + 0.6.4 diff --git a/Sample/RealtimeApp/RealtimeApp.csproj b/Sample/RealtimeApp/RealtimeApp.csproj index 40d06bb..3dabc64 100644 --- a/Sample/RealtimeApp/RealtimeApp.csproj +++ b/Sample/RealtimeApp/RealtimeApp.csproj @@ -3,7 +3,7 @@ Exe netcoreapp3.0 - 0.6.3 + 0.6.4 diff --git a/Storage/Storage-Unity/Storage-Unity.csproj b/Storage/Storage-Unity/Storage-Unity.csproj index be2b949..e1dc67e 100644 --- a/Storage/Storage-Unity/Storage-Unity.csproj +++ b/Storage/Storage-Unity/Storage-Unity.csproj @@ -2,7 +2,7 @@ netstandard2.0 - 0.6.3 + 0.6.4 Storage diff --git a/Storage/Storage.Test/Storage.Test.csproj b/Storage/Storage.Test/Storage.Test.csproj index e8ca4d3..c0a1aa8 100644 --- a/Storage/Storage.Test/Storage.Test.csproj +++ b/Storage/Storage.Test/Storage.Test.csproj @@ -4,7 +4,7 @@ netcoreapp2.2 false - 0.6.3 + 0.6.4 diff --git a/Storage/Storage/LCApplication.cs b/Storage/Storage/LCApplication.cs index 21c41fd..2a297e9 100644 --- a/Storage/Storage/LCApplication.cs +++ b/Storage/Storage/LCApplication.cs @@ -9,7 +9,7 @@ namespace LeanCloud { /// public class LCApplication { // SDK 版本号,用于 User-Agent 统计 - internal const string SDKVersion = "0.6.3"; + internal const string SDKVersion = "0.6.4"; // 接口版本号,用于接口版本管理 internal const string APIVersion = "1.1"; diff --git a/Storage/Storage/Storage.csproj b/Storage/Storage/Storage.csproj index 08ea64c..0d320d5 100644 --- a/Storage/Storage/Storage.csproj +++ b/Storage/Storage/Storage.csproj @@ -2,7 +2,7 @@ netstandard2.0 - 0.6.3 + 0.6.4 LeanCloud.Storage true diff --git a/csharp-sdk.sln b/csharp-sdk.sln index 2d666b8..8697e48 100644 --- a/csharp-sdk.sln +++ b/csharp-sdk.sln @@ -112,6 +112,6 @@ Global {9D5E6A37-8925-48ED-B7EA-12C89291B59D} = {2D980281-F060-4363-AB7A-D4B6C30ADDBB} EndGlobalSection GlobalSection(MonoDevelopProperties) = preSolution - version = 0.6.3 + version = 0.6.4 EndGlobalSection EndGlobal