Commit d22cc8b6 by 杨树贤

间隔问题

parent a39f189a
Showing with 1 additions and 1 deletions
......@@ -381,7 +381,7 @@ class DataService
$randNum = 0;
$lastTimestamp = 0;
foreach ($accounts as $account) {
$randNum += 3600 * 7.5;
$randNum += 3600 * 5.2;
$startTime = Carbon::createFromTimestamp($preYearTimestamp + $randNum)->startOfDay()->addHour(9)->timestamp;
$endTime = Carbon::createFromTimestamp($preYearTimestamp + $randNum)->endOfDay()->addHour(19)->timestamp;
$createTimestamp = rand($startTime, $endTime);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment