From 57f587f4c441977b88c15e28320756857afee796 Mon Sep 17 00:00:00 2001 From: koogua Date: Thu, 3 Jun 2021 12:10:24 +0800 Subject: [PATCH] =?UTF-8?q?v1.3.6=E9=98=B6=E6=AE=B5=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=EF=BC=8Ccherry-pick?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Admin/Views/course/chapters.volt | 2 +- app/Http/Home/Views/answer/add.volt | 10 +- app/Http/Home/Views/answer/edit.volt | 10 +- app/Http/Home/Views/article/edit.volt | 96 +++++++++---------- app/Http/Home/Views/question/edit.volt | 34 +++---- app/Http/Home/Views/user/console/answers.volt | 6 +- app/Models/User.php | 7 ++ app/Repos/User.php | 9 ++ app/Services/Logic/Answer/AnswerCreate.php | 7 -- app/Services/Logic/Answer/AnswerDataTrait.php | 6 ++ app/Services/Logic/Article/ArticleCreate.php | 5 - .../Logic/Article/ArticleDataTrait.php | 6 ++ .../Logic/Comment/AfterCreateTrait.php | 21 +++- app/Services/Logic/Comment/CommentCreate.php | 22 ++--- .../Logic/Comment/CommentDataTrait.php | 45 +++++++++ app/Services/Logic/Comment/CommentReply.php | 26 ++--- app/Services/Logic/Comment/CountTrait.php | 17 +++- .../Logic/Question/QuestionCreate.php | 5 - .../Logic/Question/QuestionDataTrait.php | 6 ++ db/migrations/20210602034627.php | 34 +++++++ public/static/home/css/common.css | 18 ++-- 21 files changed, 250 insertions(+), 142 deletions(-) create mode 100644 app/Services/Logic/Comment/CommentDataTrait.php create mode 100644 db/migrations/20210602034627.php diff --git a/app/Http/Admin/Views/course/chapters.volt b/app/Http/Admin/Views/course/chapters.volt index 32b117fc..64bd6282 100644 --- a/app/Http/Admin/Views/course/chapters.volt +++ b/app/Http/Admin/Views/course/chapters.volt @@ -55,7 +55,7 @@ {{ item.id }} - {{ item.title }} + {{ item.title }} {{ item.lesson_count }} diff --git a/app/Http/Home/Views/answer/add.volt b/app/Http/Home/Views/answer/add.volt index ef3e4b2b..ca714746 100644 --- a/app/Http/Home/Views/answer/add.volt +++ b/app/Http/Home/Views/answer/add.volt @@ -12,19 +12,19 @@
-
-
- +
+
+
-
+
-
+
diff --git a/app/Http/Home/Views/answer/edit.volt b/app/Http/Home/Views/answer/edit.volt index 1f9d9918..2d9ab136 100644 --- a/app/Http/Home/Views/answer/edit.volt +++ b/app/Http/Home/Views/answer/edit.volt @@ -12,19 +12,19 @@
-
-
- +
+
+
-
+
-
+
diff --git a/app/Http/Home/Views/article/edit.volt b/app/Http/Home/Views/article/edit.volt index ebe74200..4ca2ccc5 100644 --- a/app/Http/Home/Views/article/edit.volt +++ b/app/Http/Home/Views/article/edit.volt @@ -16,10 +16,10 @@
- -
+
+
-
+
@@ -31,57 +31,57 @@
-
- -
-
+
+
-
+
@@ -30,24 +30,24 @@
-
-