From d40c93d8c21fe4d99154b36c85db66a15b96fc52 Mon Sep 17 00:00:00 2001 From: zpc Date: Thu, 18 Jul 2024 14:18:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=99=BB=E5=BD=95=E6=8F=90?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Users/UserAccount/PhoneAccount/PhoneAccountLogin.cs | 4 ++-- src/0-core/HuanMeng.MiaoYu.Model/Dto/Chat/ChatHistoryInfo.cs | 5 +++++ .../HuanMeng.MiaoYu.WebApi/appsettings.Development.json | 4 ++-- src/2-api/HuanMeng.MiaoYu.WebApi/appsettings.Production.json | 4 ++-- 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/src/0-core/HuanMeng.MiaoYu.Code/Users/UserAccount/PhoneAccount/PhoneAccountLogin.cs b/src/0-core/HuanMeng.MiaoYu.Code/Users/UserAccount/PhoneAccount/PhoneAccountLogin.cs index bd1bb57..c668838 100644 --- a/src/0-core/HuanMeng.MiaoYu.Code/Users/UserAccount/PhoneAccount/PhoneAccountLogin.cs +++ b/src/0-core/HuanMeng.MiaoYu.Code/Users/UserAccount/PhoneAccount/PhoneAccountLogin.cs @@ -48,7 +48,7 @@ namespace HuanMeng.MiaoYu.Code.Users.UserAccount.PhoneAccount } catch (Exception ex) { - return new BaseResponse(ResonseCode.Error, "出现异常", false); + return new BaseResponse(ResonseCode.Error, "出现异常" + ex.Message, false); } var day = int.Parse(DateTime.Now.ToString("yyyyMMdd")); var phoneCount = dao.daoDbMiaoYu.context.T_Verification_Code.Where(it => it.Key == phone && it.CreateDay == day).Count(); @@ -147,7 +147,7 @@ namespace HuanMeng.MiaoYu.Code.Users.UserAccount.PhoneAccount UserId = user.Id, TenantId = dao.daoDbMiaoYu.context.TenantInfo.TenantId, UserIconUrl = "", - + }; dao.daoDbMiaoYu.context.Add(userData); } diff --git a/src/0-core/HuanMeng.MiaoYu.Model/Dto/Chat/ChatHistoryInfo.cs b/src/0-core/HuanMeng.MiaoYu.Model/Dto/Chat/ChatHistoryInfo.cs index eeef91f..2457ec5 100644 --- a/src/0-core/HuanMeng.MiaoYu.Model/Dto/Chat/ChatHistoryInfo.cs +++ b/src/0-core/HuanMeng.MiaoYu.Model/Dto/Chat/ChatHistoryInfo.cs @@ -41,5 +41,10 @@ namespace HuanMeng.MiaoYu.Model.Dto.Chat /// public DateTime? LastContactTime { get; set; } + /// + /// 最后一次消息 + /// + public string LastMessage { get; set; } + } } diff --git a/src/2-api/HuanMeng.MiaoYu.WebApi/appsettings.Development.json b/src/2-api/HuanMeng.MiaoYu.WebApi/appsettings.Development.json index e87079f..d3edfbb 100644 --- a/src/2-api/HuanMeng.MiaoYu.WebApi/appsettings.Development.json +++ b/src/2-api/HuanMeng.MiaoYu.WebApi/appsettings.Development.json @@ -5,8 +5,8 @@ //腾讯云配置 "TencentCloud": { - "SecretId": "AKIDLbhdP0Vs57yd7QZWu8A2jFbno8JKBUp6", - "SecretKey": "MlP5tcUG6mdj7TwOpDWnZNFGIrJY8eH4", + "SecretId": "AKIDVyMfzKZdZP8zkNyOdsFuSsBJDB7EScs0", + "SecretKey": "89GWr7JPWYTL8ueHlAYowGZnvzKZjqs9", "SMSCode": { //请求方式 "ReqMethod": "POST", diff --git a/src/2-api/HuanMeng.MiaoYu.WebApi/appsettings.Production.json b/src/2-api/HuanMeng.MiaoYu.WebApi/appsettings.Production.json index b66519b..994b09c 100644 --- a/src/2-api/HuanMeng.MiaoYu.WebApi/appsettings.Production.json +++ b/src/2-api/HuanMeng.MiaoYu.WebApi/appsettings.Production.json @@ -5,8 +5,8 @@ //腾讯云配置 "TencentCloud": { - "SecretId": "AKIDLbhdP0Vs57yd7QZWu8A2jFbno8JKBUp6", - "SecretKey": "MlP5tcUG6mdj7TwOpDWnZNFGIrJY8eH4", + "SecretId": "AKIDVyMfzKZdZP8zkNyOdsFuSsBJDB7EScs0", + "SecretKey": "89GWr7JPWYTL8ueHlAYowGZnvzKZjqs9", "SMSCode": { //请求方式 "ReqMethod": "POST",