|
...
|
...
|
@@ -77,10 +77,10 @@ class ImageController |
|
|
|
$header['Content-Length'] = $info['size'];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// $img_type = $info['type'];
|
|
|
|
// $content = base64_encode($content);
|
|
|
|
// $img_base64 = 'data:image/' . $img_type . ';base64,' . $content;
|
|
|
|
return response($content, 200, $header);
|
|
|
|
$img_type = $info['type'];
|
|
|
|
$content = base64_encode($content);
|
|
|
|
$img_base64 = 'data:image/' . $img_type . ';base64,' . $content;
|
|
|
|
return response($img_base64, 200, $header);
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* 图片上传
|
...
|
...
|
|