From ef2cd196dcbdf40f2e2c7f5ac0cfa5bc081950bf Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Thu, 21 Apr 2022 09:42:25 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=9A=E8=BF=87IP=E7=9C=8B=E8=AE=BF=E9=97=AE?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E6=97=B6=E4=BC=98=E5=85=88=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?IP=E8=A2=AB=E5=8A=A0=E5=85=A5=E5=90=8D=E5=8D=95=E7=9A=84?= =?UTF-8?q?=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web/actions/default/servers/iplists/accessLogsPopup.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/web/actions/default/servers/iplists/accessLogsPopup.go b/internal/web/actions/default/servers/iplists/accessLogsPopup.go index 4bbfce65..3381d883 100644 --- a/internal/web/actions/default/servers/iplists/accessLogsPopup.go +++ b/internal/web/actions/default/servers/iplists/accessLogsPopup.go @@ -29,11 +29,12 @@ func (this *AccessLogsPopupAction) RunGet(params struct { this.NotFound("ipItem", params.ItemId) return } + this.Data["ipFrom"] = item.IpFrom this.Data["ipTo"] = item.IpTo // 多找几个Partition - var day = timeutil.Format("Ymd") + var day = timeutil.FormatTime("Ymd", item.CreatedAt) partitionsResp, err := this.RPC().HTTPAccessLogRPC().FindHTTPAccessLogPartitions(this.AdminContext(), &pb.FindHTTPAccessLogPartitionsRequest{Day: day}) if err != nil { this.ErrorPage(err) @@ -47,7 +48,7 @@ func (this *AccessLogsPopupAction) RunGet(params struct { Partition: partition, Day: day, Keyword: "ip:" + item.IpFrom + "," + item.IpTo, - Size: 10, + Size: 20, }) if err != nil { this.ErrorPage(err)