fax cron추가
Some checks failed
Close Pull Request / main (pull_request_target) Has been cancelled

This commit is contained in:
yangsh
2026-01-23 15:08:41 +09:00
parent 929d885b2b
commit 26db8eb602
5 changed files with 443 additions and 5 deletions

29
app/Libraries/qrcode.php Normal file
View File

@@ -0,0 +1,29 @@
<?php
class Qrcode
{
public function scan($filename)
{
$data = '';
$file = urldecode($filename);
if (!file_exists($file)) {
return '';
}
$image = new ZBarCodeImage($file);
$scanner = new ZBarCodeScanner();
$barcode = $scanner->scan($image);
if (!empty($barcode)) {
foreach ($barcode as $code) {
$data .= ',' . $code['data'];
}
if (!empty($data))
$data = substr($data, 1);
}
return $data;
}
}