| 107 | } |
| 108 | |
| 109 | func kz(s string) string { |
| 110 | data, err := web.RequestDataWith(web.NewDefaultClient(), "https://hs.fbigame.com", reqconf[0], reqconf[1], reqconf[2], nil) |
| 111 | if err == nil { |
| 112 | url := hs + para + "mod=general_deck_image&deck_code=" + s + "&deck_text=&hash=" + strings.SplitN(strings.SplitN(helper.BytesToString(data), `var hash = "`, 2)[1], `"`, 2)[0] + "&search=" + s |
| 113 | r, err := web.RequestDataWith(web.NewDefaultClient(), url, reqconf[0], reqconf[1], reqconf[2], nil) |
| 114 | if err == nil { |
| 115 | return "base64://" + gjson.Get(helper.BytesToString(r), "img").String() |
| 116 | } |
| 117 | } |
| 118 | return "" |
| 119 | } |