diff --git a/ats-tracer/controller.go b/ats-tracer/controller.go index 4c4402b..4d9c7c0 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, time.Now().Sub(tracer.lastTraceTime).String(), value, tracer.pArticle.Link), + Content: fmt.Sprintf("coach 商品 %s %s 减少了 %d,当前库存:%d \n链接:%s", tracer.pArticle.SkuID, time.Now().Sub(tracer.lastTraceTime).String(), value, article.Ats, tracer.pArticle.Link), }) } c.storage.DB().Create(&v2.ProviderAts{