style: 添加日志查看

This commit is contained in:
陈淳
2024-01-05 09:44:34 +08:00
parent 791ec9132a
commit 52db51ce10
3 changed files with 40 additions and 27 deletions

View File

@@ -57,7 +57,7 @@ namespace Yi.Framework.Bbs.Domain.Managers
AbstractArticleImport abstractArticleImport = default;
switch (importType)
{
case ArticleImportTypeEnum.Default:
case ArticleImportTypeEnum.Defalut:
abstractArticleImport = new DefaultArticleImport();
break;
@@ -67,7 +67,7 @@ namespace Yi.Framework.Bbs.Domain.Managers
default: abstractArticleImport = new DefaultArticleImport(); break;
}
abstractArticleImport.SetLogger(LoggerFactory);
var articleHandled = abstractArticleImport.Import(discussId, articleParentId, fileObjs);
await _articleRepository.InsertManyAsync(articleHandled);