From 1f532dd319b6b4919773f511899a732979c206ef Mon Sep 17 00:00:00 2001 From: Yakeing Date: Tue, 27 Aug 2019 13:19:23 +0800 Subject: [PATCH] add output QG object --- src/QrCode.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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);