...
|
...
|
@@ -349,11 +349,11 @@ class Company extends Api |
|
|
->setLabelFontSize(16)
|
|
|
->setImageType(QrCode::IMAGE_TYPE_PNG)
|
|
|
;
|
|
|
$dir = 'qrcode/'.date('Ymd');
|
|
|
$dir = 'uploads/company';
|
|
|
if (!file_exists($dir)){
|
|
|
mkdir($dir,0777,true);
|
|
|
}
|
|
|
$url = $dir.'/'.md5(microtime(true)).'.png';
|
|
|
$url = $dir.'/qrcode_'.$this->company_id.'.png';
|
|
|
// save it to a file
|
|
|
$qrCode->save($url);
|
|
|
$company->save([
|
...
|
...
|
|