fix attendance
This commit is contained in:
@@ -101,14 +101,8 @@ class BadgePdfService
|
||||
}
|
||||
|
||||
try {
|
||||
$binary = $this->renderWithDompdf(
|
||||
$rows,
|
||||
$schoolName,
|
||||
$motto,
|
||||
$footerBlock
|
||||
);
|
||||
} catch (Throwable) {
|
||||
// Keep the fixed-coordinate FPDF renderer as a fallback when Dompdf fails.
|
||||
// Dompdf is substantially heavier here and can fatally exhaust memory on larger badge runs.
|
||||
// Prefer the fixed-coordinate FPDF renderer first, and keep Dompdf only as a secondary fallback.
|
||||
$binary = $this->renderWithFpdf(
|
||||
$rows,
|
||||
$schoolName,
|
||||
@@ -117,6 +111,13 @@ class BadgePdfService
|
||||
$footerBlock,
|
||||
$logoPath
|
||||
);
|
||||
} catch (Throwable) {
|
||||
$binary = $this->renderWithDompdf(
|
||||
$rows,
|
||||
$schoolName,
|
||||
$motto,
|
||||
$footerBlock
|
||||
);
|
||||
}
|
||||
|
||||
$logIds = array_values(array_unique(array_merge($studentIds, $userIds)));
|
||||
|
||||
Reference in New Issue
Block a user