Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fdaf70e

Browse files
committed
评论不算
1 parent 996ea61 commit fdaf70e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

http/middleware/sensitive.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ func Sensivite() echo.MiddlewareFunc {
6767
return ctx.String(http.StatusOK, `{"ok":0,"error":"对不起,您的账号已被冻结!"}`)
6868
}
6969

70-
// 半夜 spam 控制
71-
if num > 0 && len(midNightSpam) == 2 {
70+
// 半夜 spam 控制;评论不算
71+
if title != "" && num > 0 && len(midNightSpam) == 2 {
7272
curHour := time.Now().Hour()
7373
startHour := goutils.MustInt(midNightSpam[0])
7474
endHour := goutils.MustInt(midNightSpam[1])

0 commit comments

Comments
 (0)