Skip to content

Commit

Permalink
Merge pull request #59 from ilyfairy/master
Browse files Browse the repository at this point in the history
v1.3.0  使用Json源生成器, 支持AOT&裁剪
  • Loading branch information
SlimeNull authored Aug 21, 2024
2 parents 4f4f388 + 1eeaf4c commit a874ed8
Show file tree
Hide file tree
Showing 7 changed files with 264 additions and 57 deletions.
8 changes: 4 additions & 4 deletions src/EleCho.GoCqHttpSdk/CqWsSession.cs
Original file line number Diff line number Diff line change
Expand Up @@ -247,10 +247,10 @@ private async Task WebSocketLoop(WebSocket webSocket)
#endif

ms.Seek(0, SeekOrigin.Begin);
CqWsDataModel? wsDataModel = JsonSerializer.Deserialize<CqWsDataModel>(ms, JsonHelper.Options);

// 处理 WebSocket 数据
ProcWsDataAsync(wsDataModel);
CqWsDataModel? wsDataModel = JsonSerializer.Deserialize<CqWsDataModel>(ms, JsonHelper.Options);
// 处理 WebSocket 数据
ProcWsDataAsync(wsDataModel);

#if DEBUG
if (wsDataModel is not CqPostModel)
Expand Down
2 changes: 1 addition & 1 deletion src/EleCho.GoCqHttpSdk/EleCho.GoCqHttpSdk.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<Company>SlimeNull</Company>
<Description>Go-CqHttp 的 .NET SDK</Description>
<RepositoryUrl>https://github.com/OrgEleCho/EleCho.GoCqHttpSdk</RepositoryUrl>
<Version>1.2.6</Version>
<Version>1.3.0</Version>
<PackageReadmeFile>README.md</PackageReadmeFile>
<Copyright>Copyright (c) EleCho 2023</Copyright>
<PackageProjectUrl>https://github.com/OrgEleCho/EleCho.GoCqHttpSdk</PackageProjectUrl>
Expand Down
311 changes: 259 additions & 52 deletions src/EleCho.GoCqHttpSdk/Utils/JsonHelper.cs

Large diffs are not rendered by default.

0 comments on commit a874ed8

Please sign in to comment.