From 84d21d80dac204e7526f10ef21588036f96c8d7c Mon Sep 17 00:00:00 2001 From: koogua Date: Wed, 10 May 2023 21:08:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96me=E7=9B=B8=E5=85=B3=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Home/Views/course/show_order.volt | 7 +- app/Services/Logic/Answer/AnswerInfo.php | 3 + app/Services/Logic/Answer/AnswerList.php | 77 ------------------- app/Services/Logic/Article/ArticleInfo.php | 3 + app/Services/Logic/Chapter/ChapterInfo.php | 3 + app/Services/Logic/Comment/CommentInfo.php | 3 + app/Services/Logic/Comment/ListTrait.php | 1 + app/Services/Logic/Consult/ConsultInfo.php | 3 + app/Services/Logic/Course/ChapterList.php | 6 +- .../Logic/Course/ConsultListTrait.php | 1 + app/Services/Logic/Course/CourseInfo.php | 24 +++--- app/Services/Logic/Course/ReviewList.php | 1 + app/Services/Logic/Point/GiftInfo.php | 9 ++- 13 files changed, 48 insertions(+), 93 deletions(-) delete mode 100644 app/Services/Logic/Answer/AnswerList.php diff --git a/app/Http/Home/Views/course/show_order.volt b/app/Http/Home/Views/course/show_order.volt index d7286f4c..f5ab79d3 100644 --- a/app/Http/Home/Views/course/show_order.volt +++ b/app/Http/Home/Views/course/show_order.volt @@ -1,4 +1,9 @@ -{% if course.me.allow_order == 1 %} +{% if course.me.logged == 0 %} + {% set login_url = url({'for':'home.account.login'}) %} + +{% elseif course.me.allow_order == 1 %} {% set order_url = url({'for':'home.order.confirm'},{'item_id':course.id,'item_type':1}) %}