We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 996ea61 commit fdaf70eCopy full SHA for fdaf70e
http/middleware/sensitive.go
@@ -67,8 +67,8 @@ func Sensivite() echo.MiddlewareFunc {
67
return ctx.String(http.StatusOK, `{"ok":0,"error":"对不起,您的账号已被冻结!"}`)
68
}
69
70
- // 半夜 spam 控制
71
- if num > 0 && len(midNightSpam) == 2 {
+ // 半夜 spam 控制;评论不算
+ if title != "" && num > 0 && len(midNightSpam) == 2 {
72
curHour := time.Now().Hour()
73
startHour := goutils.MustInt(midNightSpam[0])
74
endHour := goutils.MustInt(midNightSpam[1])
0 commit comments