修改问题

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映射
/// </summary>
//[FromServices]
public IMapper Mapper
public override IMapper Mapper
{
get
{

View File

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

View File

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

View File

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

View File

@ -22,11 +22,32 @@
{
"Name": "File",
"Args": {
"path": "../output/logs/log-.txt",
"path": "../output/logs/info/log-.txt",
"rollingInterval": "Day",
"shared": true ,
"restrictedToMinimumLevel": "Information", //
"shared": true
//"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" ]