From d1ae8268f9dc0cb1880348f9f259a47d4d5f8007 Mon Sep 17 00:00:00 2001 From: XOF Date: Sun, 30 Nov 2025 13:32:29 +0800 Subject: [PATCH] =?UTF-8?q?Fix=20=EF=BC=9A=E7=BC=96=E8=BE=91=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E4=BF=9D=E7=95=99=E5=8E=86=E5=8F=B2=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/main.go b/main.go index 6351c03..9e18fa5 100644 --- a/main.go +++ b/main.go @@ -427,6 +427,16 @@ func handleTask(w http.ResponseWriter, r *http.Request) { Time: now.Add(time.Duration(i-90) * time.Minute), } } + } else { + mu.RLock() + if existing, ok := tasks[task.ID]; ok { + task.History = existing.History + task.InStock = existing.InStock + task.LastCheck = existing.LastCheck + task.Status = existing.Status + task.Notified = existing.Notified + } + mu.RUnlock() } mu.Lock()