From df0c09e085190e76f659bc26839fd7d011ec2573 Mon Sep 17 00:00:00 2001 From: xiaozzzi <42293085+xiaozzzi@users.noreply.github.com> Date: Thu, 11 Jan 2024 16:00:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AF=BC=E5=85=A5=E6=97=B6=E7=94=A8?= =?UTF-8?q?=E6=88=B7ID=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../blossom/backend/server/article/draft/ArticleController.java | 1 + 1 file changed, 1 insertion(+) diff --git a/blossom-backend/backend/src/main/java/com/blossom/backend/server/article/draft/ArticleController.java b/blossom-backend/backend/src/main/java/com/blossom/backend/server/article/draft/ArticleController.java index 02ff1b7..be4f829 100644 --- a/blossom-backend/backend/src/main/java/com/blossom/backend/server/article/draft/ArticleController.java +++ b/blossom-backend/backend/src/main/java/com/blossom/backend/server/article/draft/ArticleController.java @@ -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) {