From 72606b30fc9643966711f9ad289a35f800b343db Mon Sep 17 00:00:00 2001 From: timerzz Date: Tue, 3 Dec 2024 09:37:58 +0800 Subject: [PATCH] =?UTF-8?q?feat=20=E4=BC=98=E5=8C=96=E5=88=B0=E8=BE=BE?= =?UTF-8?q?=E9=98=88=E5=80=BC=E5=90=8E=E6=8E=A8=E9=80=81=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ats-tracer/controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ats-tracer/controller.go b/ats-tracer/controller.go index aa1edb6..4c4402b 100644 --- a/ats-tracer/controller.go +++ b/ats-tracer/controller.go @@ -159,7 +159,7 @@ func (c *Controller) doTrace(tracer *Tracer) (available bool) { if value := tracer.lastAts - article.Ats; value >= c.threshold { _, _ = pusher.Push(c.ctx, &push.PushReq{ Title: "coach 商品库存减少", - Content: fmt.Sprintf("coach 商品 %s %s 减少了 %d \n链接:%s", tracer.pArticle.SkuID, c.interval, value, tracer.pArticle.Link), + Content: fmt.Sprintf("coach 商品 %s %s 减少了 %d \n链接:%s", tracer.pArticle.SkuID, time.Now().Sub(tracer.lastTraceTime).String(), value, tracer.pArticle.Link), }) } c.storage.DB().Create(&v2.ProviderAts{