This commit is contained in:
parent
1e799ae1c2
commit
72606b30fc
@ -159,7 +159,7 @@ func (c *Controller) doTrace(tracer *Tracer) (available bool) {
|
|||||||
if value := tracer.lastAts - article.Ats; value >= c.threshold {
|
if value := tracer.lastAts - article.Ats; value >= c.threshold {
|
||||||
_, _ = pusher.Push(c.ctx, &push.PushReq{
|
_, _ = pusher.Push(c.ctx, &push.PushReq{
|
||||||
Title: "coach 商品库存减少",
|
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{
|
c.storage.DB().Create(&v2.ProviderAts{
|
||||||
|
Loading…
Reference in New Issue
Block a user