dever 4 years ago
parent
commit
ffbab525ba
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/Api.php

+ 3 - 2
src/Api.php

@@ -42,7 +42,6 @@ class Api
             $QR = \QRcode::png($value, $file, 'L', $this->config['size'], 2);
 
             if ($logo) {
-                $logo = Dever::local($logo);
                 if (strstr($file, 'http')) {
                     $file_string = Dever::curl($file);
                 } else {
@@ -50,8 +49,10 @@ class Api
                 }
 
                 if (strstr($logo, 'http')) {
-                    $logo_string = Dever::curl($logo);
+                    $header = array();
+                    $logo_string = Dever::curl($logo, false, 'get', false, $header);
                 } else {
+                    $logo = Dever::local($logo);
                     $logo_string = file_get_contents($logo);
                 }