From 0c67c4ce4208120032f57a4da7b4a573602d9edd Mon Sep 17 00:00:00 2001 From: CortexCore <2630229280@qq.com> Date: Mon, 29 Jul 2024 16:18:15 +0800 Subject: [PATCH] 1 --- Src/Models/WeChatUserInfo.cs | 5 ++++- WeChatSharp.csproj | 10 ++++++---- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/Src/Models/WeChatUserInfo.cs b/Src/Models/WeChatUserInfo.cs index 43b0e76..1a15379 100644 --- a/Src/Models/WeChatUserInfo.cs +++ b/Src/Models/WeChatUserInfo.cs @@ -1,11 +1,12 @@ using System; +using BITKit.Entities; using Newtonsoft.Json; namespace WeChatSharp { [Serializable] - public record WeChatUserInfo + public record WeChatUserInfo:IdComponent_String { [JsonProperty(propertyName: "subscribe")] public int Subscribe; @@ -50,6 +51,8 @@ namespace WeChatSharp [JsonProperty(propertyName: "qr_scene_str")] public string QrSceneStr; + + public string Id => OpenId; } /* { diff --git a/WeChatSharp.csproj b/WeChatSharp.csproj index 27549b4..2846f4f 100644 --- a/WeChatSharp.csproj +++ b/WeChatSharp.csproj @@ -1,17 +1,19 @@ - net7.0 + net8.0 enable enable + 12 - - - + + + +