fix: 导出签到最多只导出20个的问题

This commit is contained in:
kuaifan 2023-02-02 07:21:32 +08:00
parent 2c99634c6f
commit 7c88fbdfeb

View File

@ -850,7 +850,7 @@ class SystemController extends AbstractController
$sheets = [];
$startD = Carbon::parse($date[0])->startOfDay();
$endD = Carbon::parse($date[1])->endOfDay();
$users = User::whereIn('userid', $userid)->take(20)->get();
$users = User::whereIn('userid', $userid)->take(100)->get();
/** @var User $user */
foreach ($users as $user) {
$recordTimes = UserCheckinRecord::getTimes($user->userid, [$startD, $endD]);