MCPcopy Index your code
hub / github.com/FloatTech/ZeroBot-Plugin / kz

Function kz

plugin/hs/run.go:109–119  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

107}
108
109func 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}

Callers 1

initFunction · 0.85

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected