Skip to content

Commit

Permalink
add output QG object
Browse files Browse the repository at this point in the history
  • Loading branch information
yakeing authored Aug 27, 2019
1 parent 4878636 commit 1f532dd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/QrCode.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ public static function image($text, $pixel = 200, $icon = false, $distinguish =
//image 图像
$img = new qrcode_image();
$im = $img->ImgColor($tab, $pixel, $icon, $margin, $color);
if(true === $stream) return $im;
//if(is_object($stream)) return $im; //new stdClass()
if(true === $stream) return $im; //resource(0) of type (gd)
if(strtoupper($type) == 'PNG'){
header('Content-type: image/PNG');
ImagePNG($im);
Expand Down

0 comments on commit 1f532dd

Please sign in to comment.