|
@@ -54,9 +54,9 @@ class Qr extends Gateway{ |
|
@@ -54,9 +54,9 @@ class Qr extends Gateway{ |
54
|
}
|
54
|
}
|
55
|
|
55
|
|
56
|
if(is_int($data)){
|
56
|
if(is_int($data)){
|
57
|
- $file_name = 'qr'.$data.'.png';
|
|
|
58
|
- }else{
|
|
|
59
|
$file_name = 'qr'.date('YmdHis').rand(1111,9999).'.png';
|
57
|
$file_name = 'qr'.date('YmdHis').rand(1111,9999).'.png';
|
|
|
58
|
+ }else{
|
|
|
59
|
+ $file_name = $data.'.png';
|
60
|
}
|
60
|
}
|
61
|
$filename = $filePath.$file_name;
|
61
|
$filename = $filePath.$file_name;
|
62
|
QRcode::png($data, $filename, $errorCorrectionLevel, $matrixPointSize, 2);
|
62
|
QRcode::png($data, $filename, $errorCorrectionLevel, $matrixPointSize, 2);
|