优化
This commit is contained in:
parent
d720ba21ec
commit
da2a61a606
|
@ -46,6 +46,7 @@ func Detail(c *gin.Context) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
status = http.StatusInternalServerError
|
status = http.StatusInternalServerError
|
||||||
c.Error(err)
|
c.Error(err)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
if isApproveComment == true {
|
if isApproveComment == true {
|
||||||
return
|
return
|
||||||
|
|
|
@ -198,6 +198,7 @@ func Index(c *gin.Context) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
c.Error(err)
|
c.Error(err)
|
||||||
stat = http.StatusInternalServerError
|
stat = http.StatusInternalServerError
|
||||||
|
return
|
||||||
}
|
}
|
||||||
c.HTML(stat, helper.StrJoin(wpconfig.Options.Value("template"), "/posts/index.gohtml"), ginH)
|
c.HTML(stat, helper.StrJoin(wpconfig.Options.Value("template"), "/posts/index.gohtml"), ginH)
|
||||||
}()
|
}()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user