fix: 导入时用户ID错误

This commit is contained in:
xiaozzzi 2024-01-11 16:00:08 +08:00
parent 0170aaf61e
commit df0c09e085

View File

@ -271,6 +271,7 @@ public class ArticleController {
ArticleEntity article = new ArticleEntity();
article.setMarkdown(content);
article.setPid(pid);
article.setUserId(AuthContext.getUserId());
article.setName(FileUtil.getPrefix(file.getOriginalFilename()));
baseService.insert(article);
} catch (Exception e) {