This commit is contained in:
邹宗楠
2024-01-11 15:09:34 +08:00
parent 67217ad320
commit 61e68bd740
2 changed files with 5 additions and 2 deletions

View File

@@ -634,7 +634,7 @@ func GetSToURidingDistance2(sLng, sLat, uLng, uLat float64, orderId string) (way
if err == nil && len(originalData) != model.NO {
v.OriginalData = strings.Join(originalData, ";")
v.Distance = distance
v.DurationTime = durationTime
v.DurationTime = durationTime + 500
}
}

View File

@@ -496,7 +496,10 @@ func UpdateFakeWayBillToTiktok() {
continue
}
}
//
//allTime := order.ExpectedDeliveredTime.Unix() - order.OrderCreatedAt.Unix()
//nowTime := time.Now().Unix() - order.OrderCreatedAt.Unix()
//float64(nowTime)/float64(allTime)
randNumber, _ := rand.Int(rand.Reader, big.NewInt(900))
randTime := randNumber.Int64()
if randTime < 480 {