优化
This commit is contained in:
parent
d720ba21ec
commit
da2a61a606
|
@ -46,6 +46,7 @@ func Detail(c *gin.Context) {
|
|||
if err != nil {
|
||||
status = http.StatusInternalServerError
|
||||
c.Error(err)
|
||||
return
|
||||
}
|
||||
if isApproveComment == true {
|
||||
return
|
||||
|
|
|
@ -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)
|
||||
}()
|
||||
|
|
Loading…
Reference in New Issue
Block a user