upgrade dependence

This commit is contained in:
Nite07 2024-12-03 23:40:46 +08:00
parent 901785525f
commit cc01ac18a5

View File

@ -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
}