From da2a61a606daee0377883f127d0c92682b268ea6 Mon Sep 17 00:00:00 2001 From: xing Date: Wed, 28 Dec 2022 16:40:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- actions/detail.go | 1 + actions/index.go | 1 + 2 files changed, 2 insertions(+) diff --git a/actions/detail.go b/actions/detail.go index 4efd085..2828cbc 100644 --- a/actions/detail.go +++ b/actions/detail.go @@ -46,6 +46,7 @@ func Detail(c *gin.Context) { if err != nil { status = http.StatusInternalServerError c.Error(err) + return } if isApproveComment == true { return diff --git a/actions/index.go b/actions/index.go index a4f5a42..9f10daf 100644 --- a/actions/index.go +++ b/actions/index.go @@ -198,6 +198,7 @@ func Index(c *gin.Context) { if err != nil { c.Error(err) stat = http.StatusInternalServerError + return } c.HTML(stat, helper.StrJoin(wpconfig.Options.Value("template"), "/posts/index.gohtml"), ginH) }()