Skip to content

Commit 00c7bf7

Browse files
committed
修复翻页为0的 fix #189
1 parent 6832a06 commit 00c7bf7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

runner/enscan.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package runner
22

33
import (
44
"fmt"
5+
56
"github.com/tidwall/gjson"
67
"github.com/tidwall/sjson"
78
"github.com/wgpsec/ENScan/common"
@@ -110,7 +111,7 @@ func (j *EnJob) getInfoList(pid string, em *common.EnsGo, sk string, ref string)
110111
return resData, err
111112
}
112113
// 如果一页能获取完就不翻页了
113-
if data.Size < data.Total {
114+
if data.Size < data.Total && data.Size > 0 {
114115
pages := int((data.Total + data.Size - 1) / data.Size)
115116
for i := 2; i <= pages; i++ {
116117
gologger.Info().Msgf("正在获取 ⌈%s⌋ 第⌈%d/%d⌋页\n", em.Name, i, pages)

0 commit comments

Comments
 (0)