...
|
...
|
@@ -779,6 +779,9 @@ class Create extends Api |
|
|
->setBackgroundColor(['r' => 255, 'g' => 255, 'b' => 255, 'a' => 0])
|
|
|
->setImageType(QrCode::IMAGE_TYPE_PNG);
|
|
|
$file_path = "folder".$user_id.".png";
|
|
|
if (!file_exists('./upload/folder/')) {
|
|
|
mkdir('./upload/folder/', 0777, true);
|
|
|
}
|
|
|
|
|
|
$qrCode->save(ROOT_PATH . 'public' . DS . 'upload/folder' . DS . $file_path);
|
|
|
$qrcodeurl = request()->domain().'/upload/folder/folder'.$user_id.'.png';
|
...
|
...
|
@@ -796,6 +799,9 @@ class Create extends Api |
|
|
->setBackgroundColor(['r' => 255, 'g' => 255, 'b' => 255, 'a' => 0])
|
|
|
->setImageType(QrCode::IMAGE_TYPE_PNG);
|
|
|
$file_path = "file".$user_id.".png";
|
|
|
if (!file_exists('./upload/file/')) {
|
|
|
mkdir('./upload/file/', 0777, true);
|
|
|
}
|
|
|
|
|
|
$qrCode->save(ROOT_PATH . 'public' . DS . 'upload/file' . DS . $file_path);
|
|
|
$qrcodeurl = request()->domain().'/upload/file/file'.$user_id.'.png';
|
...
|
...
|
|