fix: 短信登录失败时登陆日志缺失UserId记录

This commit is contained in:
Argo Windows 2019-10-27 12:34:12 +08:00
parent c42bc15890
commit 932aa8f24b
3 changed files with 14 additions and 13 deletions

View File

@ -11,7 +11,7 @@
<ItemGroup>
<PackageReference Include="Bootstrap.Security.Mvc" Version="3.0.2-beta3" />
<PackageReference Include="Longbow.Logging" Version="3.0.1" />
<PackageReference Include="Longbow.Logging" Version="3.0.2-beta1" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Versioning" Version="4.0.0-preview8.19405.7" />
<PackageReference Include="Sentry.AspNetCore" Version="2.0.0-beta4" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="5.0.0-rc4" />

View File

@ -8,52 +8,53 @@ using System.Data.Common;
namespace Bootstrap.DataAccess
{
/// <summary>
///
/// 异常实体类
/// </summary>
[PrimaryKey("Id", AutoIncrement = true)]
public class Exceptions
{
/// <summary>
///
/// 获得/设置 主键
/// </summary>
public string Id { get; set; }
/// <summary>
///
/// 获得/设置 主键
/// </summary>
public string AppDomainName { get; set; }
/// <summary>
///
/// 获得/设置 用户请求页面地址
/// </summary>
public string ErrorPage { get; set; }
/// <summary>
///
/// 获得/设置 用户 ID
/// </summary>
public string UserId { get; set; }
/// <summary>
///
/// 获得/设置 用户 IP
/// </summary>
public string UserIp { get; set; }
/// <summary>
///
/// 获得/设置 异常类型
/// </summary>
public string ExceptionType { get; set; }
/// <summary>
///
/// 获得/设置 异常错误描述信息
/// </summary>
public string Message { get; set; }
/// <summary>
///
/// 获得/设置 异常堆栈信息
/// </summary>
public string StackTrace { get; set; }
/// <summary>
///
/// 获得/设置 日志时间戳
/// </summary>
public DateTime LogTime { get; set; }
@ -64,7 +65,7 @@ namespace Bootstrap.DataAccess
public string Period { get; set; }
/// <summary>
///
/// 获得/设置 分类信息
/// </summary>
public string Category { get; set; }

View File

@ -7,7 +7,7 @@
<ItemGroup>
<PackageReference Include="Bootstrap.Security.Mvc" Version="3.0.2-beta3" />
<PackageReference Include="Longbow.Logging" Version="3.0.1" />
<PackageReference Include="Longbow.Logging" Version="3.0.2-beta1" />
<PackageReference Include="Microsoft.Data.Sqlite" Version="3.0.0" />
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="5.6.0" />
</ItemGroup>