From 13a5f51c31531b8f11d6c282d5df953af678983f Mon Sep 17 00:00:00 2001 From: timerzz Date: Sat, 13 Apr 2024 09:31:21 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BF=AE=E5=A4=8Dwatch=E6=B2=A1=E6=9C=89?= =?UTF-8?q?=E8=A2=AB=E6=AD=A3=E5=B8=B8=E8=AE=BE=E7=BD=AE=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/watcher/coach.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/watcher/coach.go b/pkg/watcher/coach.go index 873ea60..51432c1 100644 --- a/pkg/watcher/coach.go +++ b/pkg/watcher/coach.go @@ -120,6 +120,7 @@ func (c *CoachOutlet) Watch() { if !inventory.AllocationResetDate.IsZero() { c.detail.AllocationResetDate = inventory.AllocationResetDate } + c.detail.Watch = true if c.detail.Orderable { c.detail.Watch = false c.detail.AllocationResetDate = time.Now() @@ -207,6 +208,7 @@ func (c *CoachOutlet) requestProductDetail(ctx context.Context) error { c.detail = resp.ProductData[0].Product() c.detail.Remark = c.cfg.Remark c.detail.Link = fmt.Sprintf("https://www.coachoutlet.com%s", c.detail.Link) + c.detail.Watch = true if c.detail.Orderable { c.detail.Watch = false if c.detail.AllocationResetDate.IsZero() {