|
1 | 1 | package riskbird |
2 | 2 |
|
3 | 3 | import ( |
| 4 | + "github.com/tidwall/gjson" |
4 | 5 | "github.com/wgpsec/ENScan/common" |
5 | 6 | "github.com/wgpsec/ENScan/common/gologger" |
6 | 7 | "strings" |
@@ -67,8 +68,8 @@ func getENMap() map[string]*common.EnsGo { |
67 | 68 | Api: "companyInvest", |
68 | 69 | GNum: "companyInvestCount", |
69 | 70 | 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"}, |
72 | 73 | }, |
73 | 74 | "branch": { |
74 | 75 | Name: "分支机构", |
@@ -120,6 +121,10 @@ func (h *RB) req(url string, data string) string { |
120 | 121 | return h.req(url, data) |
121 | 122 | } |
122 | 123 | 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 | + } |
123 | 128 | return resp.String() |
124 | 129 | } else if resp.StatusCode == 403 { |
125 | 130 | gologger.Error().Msgf("【RB】ip被禁止访问网站,请更换ip\n") |
|
0 commit comments