diff --git a/crawler/freegog.go b/crawler/freegog.go index 4ab1a14..b7b7b0c 100644 --- a/crawler/freegog.go +++ b/crawler/freegog.go @@ -62,7 +62,7 @@ func (c *FreeGOGCrawler) Crawl(num int) ([]*model.GameItem, error) { c.logger.Error("Failed to create session", zap.Error(err)) return nil, err } - resp, err := ccs.RequestWithWAFSession(http.MethodGet, constant.FreeGOGListURL, *session, "", nil) + resp, err := ccs.RequestWithWAFSession(http.MethodGet, constant.FreeGOGListURL, *session, nil) if err != nil { c.logger.Error("Failed to fetch", zap.Error(err)) return nil, err @@ -115,7 +115,7 @@ func (c *FreeGOGCrawler) CrawlByUrl(URL string) (*model.GameItem, error) { if err != nil { return nil, err } - resp, err := ccs.RequestWithWAFSession(http.MethodGet, URL, *session, "", nil) + resp, err := ccs.RequestWithWAFSession(http.MethodGet, URL, *session, nil) if err != nil { return nil, err } diff --git a/go.mod b/go.mod index 993cfb4..0e32ce5 100644 --- a/go.mod +++ b/go.mod @@ -25,7 +25,7 @@ require ( ) require ( - git.nite07.com/nite/ccs v0.0.0-20241203153655-eff00a6afd7e // indirect + git.nite07.com/nite/ccs v0.0.0-20241203155017-60608c26cf61 // indirect github.com/Danny-Dasilva/CycleTLS/cycletls v1.0.26 // indirect github.com/Danny-Dasilva/fhttp v0.0.0-20240217042913-eeeb0b347ce1 // indirect github.com/KyleBanks/depth v1.2.1 // indirect diff --git a/go.sum b/go.sum index 077c638..8e249f8 100644 --- a/go.sum +++ b/go.sum @@ -13,6 +13,10 @@ git.nite07.com/nite/ccs v0.0.0-20241202053845-550f69c19ba2 h1:hsnRzTS+6Dd+ZFPe48 git.nite07.com/nite/ccs v0.0.0-20241202053845-550f69c19ba2/go.mod h1:+kZxYKbZJ3igYXdgCStq+SocI2Wy0fE0RaGqW6YD71w= git.nite07.com/nite/ccs v0.0.0-20241203153655-eff00a6afd7e h1:SJVt97JqleQiRNP6HpH5OWSneXhBs8bhaQ0Em20KDl4= git.nite07.com/nite/ccs v0.0.0-20241203153655-eff00a6afd7e/go.mod h1:+kZxYKbZJ3igYXdgCStq+SocI2Wy0fE0RaGqW6YD71w= +git.nite07.com/nite/ccs v0.0.0-20241203154730-1ecdcb99a31b h1:5g2GTuFxIfba8Tm8liHW6FJQxbjiIu3NmYdr5u7OaiM= +git.nite07.com/nite/ccs v0.0.0-20241203154730-1ecdcb99a31b/go.mod h1:+kZxYKbZJ3igYXdgCStq+SocI2Wy0fE0RaGqW6YD71w= +git.nite07.com/nite/ccs v0.0.0-20241203155017-60608c26cf61 h1:BjsC5e1NuReTuThi8BT4a4e6SFBQJ3C3R6XchhDF01s= +git.nite07.com/nite/ccs v0.0.0-20241203155017-60608c26cf61/go.mod h1:+kZxYKbZJ3igYXdgCStq+SocI2Wy0fE0RaGqW6YD71w= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/Danny-Dasilva/CycleTLS/cycletls v1.0.26 h1:6fexoGmvzoXMSk14BZ0AirapVm5c3KUsEjE0jLlVKi8= github.com/Danny-Dasilva/CycleTLS/cycletls v1.0.26/go.mod h1:QFi/EVO7qqru3Ftxz1LR+96jIc91Tifv0DnskF/gWQ8=