From 993c7ee8222f453bc04f47d18d474d31f73d580c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Thu, 2 Nov 2023 17:19:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E5=9F=9F=E5=90=8D=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1=E6=95=B0=E6=8D=AE=E6=97=B6=E9=99=90=E5=88=B6=E5=9F=9F?= =?UTF-8?q?=E5=90=8D=E9=95=BF=E5=BA=A6=E4=B8=8D=E8=83=BD=E8=B6=85=E8=BF=87?= =?UTF-8?q?64=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/db/models/stats/server_domain_hourly_stat_dao.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/db/models/stats/server_domain_hourly_stat_dao.go b/internal/db/models/stats/server_domain_hourly_stat_dao.go index 2a2f7b5c..c94ee084 100644 --- a/internal/db/models/stats/server_domain_hourly_stat_dao.go +++ b/internal/db/models/stats/server_domain_hourly_stat_dao.go @@ -83,7 +83,7 @@ func (this *ServerDomainHourlyStatDAO) IncreaseHourlyStat(tx *dbs.Tx, clusterId if len(hour) != 10 { return errors.New("invalid hour '" + hour + "'") } - if len(domain) == 0 { + if len(domain) == 0 || len(domain) > 64 { return nil } err := this.Query(tx).