From 2628f6b7d7d5bbb58fe041f363b04d9c1b5d61fb Mon Sep 17 00:00:00 2001 From: koogua Date: Mon, 15 Aug 2022 17:22:33 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=95=B4=E7=90=86=E6=9F=A5=E8=AF=A2=E6=9E=84?= =?UTF-8?q?=E5=BB=BA=E8=AF=AD=E5=8F=A5=202.=E6=95=B4=E7=90=86=E5=89=8D?= =?UTF-8?q?=E5=8F=B0=E7=BC=96=E8=BE=91=E5=99=A8=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 4 + app/Http/Home/Views/answer/add.volt | 11 +- app/Http/Home/Views/answer/edit.volt | 7 +- app/Http/Home/Views/article/edit.volt | 71 +++++---- app/Http/Home/Views/question/edit.volt | 37 ++--- app/Http/Home/Views/question/show.volt | 10 +- app/Repos/Answer.php | 12 +- app/Repos/Article.php | 20 ++- app/Repos/Comment.php | 14 +- app/Repos/Consult.php | 8 +- app/Repos/FlashSale.php | 6 +- app/Repos/Notification.php | 6 +- app/Repos/Order.php | 20 ++- app/Repos/PointGift.php | 6 +- app/Repos/PointHistory.php | 6 +- app/Repos/Question.php | 16 +- app/Repos/Refund.php | 6 +- app/Repos/Report.php | 6 +- app/Repos/Review.php | 8 +- app/Repos/Trade.php | 12 +- app/Repos/User.php | 12 +- app/Services/Logic/Question/AnswerList.php | 2 + app/Services/Storage.php | 2 +- composer.json | 2 +- composer.lock | 162 +++++++++++---------- public/static/home/css/common.css | 23 ++- public/static/home/js/answer.edit.js | 10 -- 27 files changed, 299 insertions(+), 200 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bd434834..eb18fbed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,11 @@ ### [v1.5.7](https://gitee.com/koogua/course-tencent-cloud/releases/v1.5.7)(2022-08-28) - 清理群组残留 +- 升级腾讯云存储SDK到v2.5.6 - 优化HtmlPurifier缓存目录自动创建 +- 优化问题回答排序问题 +- 整理查询构建语句 +- 整理优化CSS ### [v1.5.6](https://gitee.com/koogua/course-tencent-cloud/releases/v1.5.6)(2022-08-08) diff --git a/app/Http/Home/Views/answer/add.volt b/app/Http/Home/Views/answer/add.volt index 879532b4..b3b89f42 100644 --- a/app/Http/Home/Views/answer/add.volt +++ b/app/Http/Home/Views/answer/add.volt @@ -10,9 +10,9 @@
-
+
-
+
@@ -30,12 +30,11 @@
+
+ {{ partial('answer/tips') }} +
- {% if auth_user.answer_count < 3 %} -
- {% endif %} - {% endblock %} {% block include_js %} diff --git a/app/Http/Home/Views/answer/edit.volt b/app/Http/Home/Views/answer/edit.volt index bf4e2c7f..49bf16d2 100644 --- a/app/Http/Home/Views/answer/edit.volt +++ b/app/Http/Home/Views/answer/edit.volt @@ -10,9 +10,9 @@
-
+
-
+
@@ -29,6 +29,9 @@
+
+ {{ partial('answer/tips') }} +
{% endblock %} diff --git a/app/Http/Home/Views/article/edit.volt b/app/Http/Home/Views/article/edit.volt index c4954799..911072bb 100644 --- a/app/Http/Home/Views/article/edit.volt +++ b/app/Http/Home/Views/article/edit.volt @@ -6,20 +6,17 @@ {% set action_url = article.id > 0 ? url({'for':'home.article.update','id':article.id}) : url({'for':'home.article.create'}) %} {% set source_url_display = article.source_type == 1 ? 'display:none;' : 'display:block;' %} -
+ -
-
-
-
+ +
+
+
@@ -30,42 +27,40 @@
- +
diff --git a/app/Http/Home/Views/question/edit.volt b/app/Http/Home/Views/question/edit.volt index 14818f59..7d8317c0 100644 --- a/app/Http/Home/Views/question/edit.volt +++ b/app/Http/Home/Views/question/edit.volt @@ -5,20 +5,17 @@ {% set title = question.id > 0 ? '编辑问题' : '提问题' %} {% set action_url = question.id > 0 ? url({'for':'home.question.update','id':question.id}) : url({'for':'home.question.create'}) %} -
+ -
-
-
-
+ +
+
+
@@ -29,23 +26,21 @@
-