From 52cce4d57472d61e04f1fd9695f9cb3a5d1142c2 Mon Sep 17 00:00:00 2001 From: jiangyong27 Date: Wed, 15 May 2024 10:46:55 +0800 Subject: [PATCH] useMinute --- worker/nowcar/ddf.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/worker/nowcar/ddf.go b/worker/nowcar/ddf.go index 12d1278..1d1d40a 100644 --- a/worker/nowcar/ddf.go +++ b/worker/nowcar/ddf.go @@ -82,6 +82,9 @@ func (d *Ddf) getDetail(shopId int) { if m1 != nil { continue } + if useMinute > 100 || useMinute < 0 { + useMinute = 0 + } m1 = new(model.Ddf) m1.Day = time.Now().Format("2006-01-02") m1.ShopName = shopName