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 - - - + + + +