From 8aa605ff87e45319f54993fe73e46c8a9e25dd06 Mon Sep 17 00:00:00 2001 From: timerzz Date: Sat, 29 Mar 2025 20:27:52 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BF=AE=E5=A4=8D=E5=95=86=E5=93=81?= =?UTF-8?q?=E9=93=BE=E6=8E=A5=E4=B8=8D=E6=AD=A3=E7=A1=AE=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spider/controller.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spider/controller.go b/spider/controller.go index 607056c..05177c9 100644 --- a/spider/controller.go +++ b/spider/controller.go @@ -281,10 +281,11 @@ func (c *Controller) crawlUpdateBags() { Exclude: true, } } else { + link, _ := url.JoinPath(c.client.BaseUrl(), item.Url) pArticle = v2.ProviderArticle{ Pid: article.Pid, Brand: article.Brand, - Link: item.Url, + Link: link, Image: article.Image, ProviderId: c.providerId, SkuID: article.Pid,