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

@@ -198,6 +198,7 @@ func UpdateFakeWayBillToTiktok() {
return
}
rand.Seed(time.Now().UnixNano())
for i := 0; i < len(fakeWayBill); i++ {
// 判断当前订单是否可以推送,UpdatedAt > 当前时间 就跳过
if fakeWayBill[i].ModelTimeInfo.UpdatedAt.After(time.Now()) {
@@ -265,7 +266,6 @@ func UpdateFakeWayBillToTiktok() {
}
}
rand.Seed(time.Now().Unix())
randNumber := rand.Int63n(481)
if randNumber < 60 {
randNumber += 60