From 3ac56fa5c6ba71a0a21f0324b622839ca8797ae4 Mon Sep 17 00:00:00 2001
From: wtp <1813748440@qq.com>
Date: Wed, 22 Mar 2023 22:11:14 +0800
Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=99=BB=E5=BD=95=E7=94=A8?=
=?UTF-8?q?=E6=88=B7openID=E8=BF=94=E5=9B=9E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
GDZZ.Application/GDZZ.Application.xml | 15 +++++++++++++++
GDZZ.Application/Service/Auth/AuthService.cs | 1 +
GDZZ.Application/Service/Auth/DTO/AuthUserOut.cs | 6 ++++++
3 files changed, 22 insertions(+)
diff --git a/GDZZ.Application/GDZZ.Application.xml b/GDZZ.Application/GDZZ.Application.xml
index b95f080..32d440f 100644
--- a/GDZZ.Application/GDZZ.Application.xml
+++ b/GDZZ.Application/GDZZ.Application.xml
@@ -574,6 +574,21 @@
+
+
+
+
+
+
+
+ 用户ID
+
+
+
+
+ 余额
+
+
微信支付
diff --git a/GDZZ.Application/Service/Auth/AuthService.cs b/GDZZ.Application/Service/Auth/AuthService.cs
index 4c42cbe..34fc7ef 100644
--- a/GDZZ.Application/Service/Auth/AuthService.cs
+++ b/GDZZ.Application/Service/Auth/AuthService.cs
@@ -182,6 +182,7 @@ namespace GDZZ.Application.Service.Auth
authUserOut.UserName = sysUser.Name;
authUserOut.Self = Self.IsEmpty() ? "未填写" : Self.Name;
authUserOut.Type = UserEnum.JOB;
+ authUserOut.OpenID = tokenModel.OpenId;
await this.cacheService.SetUserInfoAsync(authUserOut, authUserOut.UserId);
return authUserOut;
diff --git a/GDZZ.Application/Service/Auth/DTO/AuthUserOut.cs b/GDZZ.Application/Service/Auth/DTO/AuthUserOut.cs
index c1c16a7..f60b06b 100644
--- a/GDZZ.Application/Service/Auth/DTO/AuthUserOut.cs
+++ b/GDZZ.Application/Service/Auth/DTO/AuthUserOut.cs
@@ -51,5 +51,11 @@ namespace GDZZ.Application
///
public UserEnum Type { get; set; }
+
+ ///
+ ///
+ ///
+ public string OpenID { get; set; }
+
}
}