访问日志搜索增加域名和IP搜索

This commit is contained in:
刘祥超
2021-08-07 22:04:30 +08:00
parent c3e68915a3
commit 75c8658366
9 changed files with 111 additions and 55 deletions

View File

@@ -22,6 +22,8 @@ func (this *HistoryAction) RunGet(params struct {
ServerId int64
Day string
Keyword string
Ip string
Domain string
RequestId string
HasError int
@@ -33,6 +35,8 @@ func (this *HistoryAction) RunGet(params struct {
this.Data["path"] = this.Request.URL.Path
this.Data["day"] = params.Day
this.Data["keyword"] = params.Keyword
this.Data["ip"] = params.Ip
this.Data["domain"] = params.Domain
this.Data["accessLogs"] = []interface{}{}
this.Data["hasError"] = params.HasError
@@ -51,6 +55,8 @@ func (this *HistoryAction) RunGet(params struct {
HasError: params.HasError > 0,
Day: day,
Keyword: params.Keyword,
Ip: params.Ip,
Domain: params.Domain,
Size: size,
})
if err != nil {
@@ -84,6 +90,8 @@ func (this *HistoryAction) RunGet(params struct {
HasError: params.HasError > 0,
Day: day,
Keyword: params.Keyword,
Ip: params.Ip,
Domain: params.Domain,
Size: size,
Reverse: true,
})