作者 lyh

gx

@@ -54,7 +54,7 @@ class ImageController @@ -54,7 +54,7 @@ class ImageController
54 $this->response('指定图片不存在!', Code::USER_ERROR); 54 $this->response('指定图片不存在!', Code::USER_ERROR);
55 } 55 }
56 //查看缩略图是否存在 56 //查看缩略图是否存在
57 -// $header['Content-Type'] = 'image/'.$info['type']; 57 + $header['Content-Type'] = 'image/'.$info['type'];
58 $filename = $this->path . $info['hash'] . $w . '_' . $h; 58 $filename = $this->path . $info['hash'] . $w . '_' . $h;
59 if(is_file($filename)){ 59 if(is_file($filename)){
60 $last_modified_time = gmdate(time() + ((30 * 60 * 60 * 24))) . " GMT"; 60 $last_modified_time = gmdate(time() + ((30 * 60 * 60 * 24))) . " GMT";