mirror of
https://github.com/blossom-editor/blossom
synced 2024-11-17 14:39:21 +08:00
fix: 导入时用户ID错误
This commit is contained in:
parent
0170aaf61e
commit
df0c09e085
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user