This commit is contained in:
邹宗楠
2022-11-04 09:30:10 +08:00
parent 09ce608f62
commit c8ff1f5c97
2 changed files with 2 additions and 2 deletions

View File

@@ -81,7 +81,7 @@ func (s *DefScheduler) SelfDeliveringAndUpdateStatus(ctx *jxcontext.Context, ven
// 上面是真的转自送,支持美团,饿百,京东,如果时抖店,抖店暂时全部是自送的!但是有骑手信息时,就是一个白嫖单子!
if order.VendorID == model.VendorIDDD && courierName != "" && courierMobile != "" {
timeNow := time.Now()
rand.Seed(timeNow.Unix())
rand.Seed(timeNow.UnixNano())
randNumber := rand.Int63n(481)
if randNumber < 60 {
randNumber += 60