Skip to content

Commit 25695cc

Browse files
committed
修复RB 投资企业名称展示,日查询上限提示
1 parent eb84377 commit 25695cc

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

internal/riskbird/bean.go

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

33
import (
4+
"github.com/tidwall/gjson"
45
"github.com/wgpsec/ENScan/common"
56
"github.com/wgpsec/ENScan/common/gologger"
67
"strings"
@@ -67,8 +68,8 @@ func getENMap() map[string]*common.EnsGo {
6768
Api: "companyInvest",
6869
GNum: "companyInvestCount",
6970
SData: map[string]string{"category": "-100", "percentLevel": "-100", "province": "-100"},
70-
Field: []string{"name", "personName", "entStatus", "funderRatio", "entid"},
71-
KeyWord: []string{"entName", "法人", "状态", "投资比例", "PID"},
71+
Field: []string{"entName", "personName", "entStatus", "funderRatio", "entid"},
72+
KeyWord: []string{"企业名称", "法人", "状态", "投资比例", "PID"},
7273
},
7374
"branch": {
7475
Name: "分支机构",
@@ -120,6 +121,10 @@ func (h *RB) req(url string, data string) string {
120121
return h.req(url, data)
121122
}
122123
if resp.StatusCode == 200 {
124+
rs := gjson.Parse(resp.String())
125+
if rs.Get("state").String() == "limit:auth" {
126+
gologger.Fatal().Msgf("【RB】您今日的查询次数已达到上限!请前往网站检查~\n")
127+
}
123128
return resp.String()
124129
} else if resp.StatusCode == 403 {
125130
gologger.Error().Msgf("【RB】ip被禁止访问网站,请更换ip\n")

0 commit comments

Comments
 (0)