修改问题

This commit is contained in:
zpc 2024-08-06 03:31:37 +08:00
parent fb2b27328f
commit ac2741eb37
5 changed files with 31 additions and 5 deletions

View File

@ -122,7 +122,7 @@ namespace HuanMeng.MiaoYu.Code.Base
/// dto映射 /// dto映射
/// </summary> /// </summary>
//[FromServices] //[FromServices]
public IMapper Mapper public override IMapper Mapper
{ {
get get
{ {

View File

@ -43,7 +43,7 @@ namespace HuanMeng.MiaoYu.Code.Cache
/// <summary> /// <summary>
/// 数据 /// 数据
/// </summary> /// </summary>
public List<T> DataList public virtual List<T> DataList
{ {
get get
{ {

View File

@ -17,6 +17,7 @@ namespace HuanMeng.MiaoYu.Code.Cache
/// <param name="dao"></param> /// <param name="dao"></param>
public partial class MiaoYuCache(CacheBase cacheBase) public partial class MiaoYuCache(CacheBase cacheBase)
{ {
#region #region
/// <summary> /// <summary>
@ -169,6 +170,11 @@ namespace HuanMeng.MiaoYu.Code.Cache
public static class MiaoYuCacheExtend public static class MiaoYuCacheExtend
{ {
/// <summary>
/// 缓存时间
/// </summary>
public static DateTime CacheTime { get; set; }
#region #region
/// <summary> /// <summary>
/// 对话角色缓存表 /// 对话角色缓存表

View File

@ -19,7 +19,6 @@ namespace HuanMeng.MiaoYu.Code.Cache.Special
/// <summary> /// <summary>
/// 锁 /// 锁
/// </summary> /// </summary>
private static object CharacterCacheLock = new object();
private IMapper mapper = cacheBase.Mapper; private IMapper mapper = cacheBase.Mapper;
/// <summary> /// <summary>

View File

@ -22,11 +22,32 @@
{ {
"Name": "File", "Name": "File",
"Args": { "Args": {
"path": "../output/logs/log-.txt", "path": "../output/logs/info/log-.txt",
"rollingInterval": "Day", "rollingInterval": "Day",
"shared": true , "restrictedToMinimumLevel": "Information", //
"shared": true
//"outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level}] {Message}{NewLine}{Exception}" //"outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level}] {Message}{NewLine}{Exception}"
} }
},
{
"Name": "File",
"Args": {
"path": "../output/logs/error/log-.txt",
"rollingInterval": "Day", //
"restrictedToMinimumLevel": "Error", // // VerboseDebugInformationWarningError Fatal
"shared": true, //
// "outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level}] {Message}{NewLine}{Exception}"
}
},
{
"Name": "File",
"Args": {
"path": "../output/logs/debug/log-.txt",
"rollingInterval": "Day", //
"restrictedToMinimumLevel": "Debug", // // VerboseDebugInformationWarningError Fatal
"shared": true //
// "outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level}] {Message}{NewLine}{Exception}"
}
} }
], ],
"Enrich": [ "FromLogContext", "WithMachineName", "WithThreadId" ] "Enrich": [ "FromLogContext", "WithMachineName", "WithThreadId" ]