diff --git a/src/QrCode.php b/src/QrCode.php index 2240ff0..02a8f1e 100644 --- a/src/QrCode.php +++ b/src/QrCode.php @@ -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);