From cc01ac18a5d2133013444e233ba1aba7f20f721a Mon Sep 17 00:00:00 2001 From: nite07 Date: Tue, 3 Dec 2024 23:40:46 +0800 Subject: [PATCH] upgrade dependence --- crawler/freegog.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crawler/freegog.go b/crawler/freegog.go index b7b7b0c..4ab1a14 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 }