作者 lyh

gx

@@ -131,15 +131,11 @@ class ImageController extends Controller @@ -131,15 +131,11 @@ class ImageController extends Controller
131 */ 131 */
132 public function readImageContent($info,$w,$h) 132 public function readImageContent($info,$w,$h)
133 { 133 {
134 - $path = $this->config['root'] . $info['path'];  
135 - if (!is_file($path)) {  
136 - $this->response('指定图片已被系统删除!', Code::USER_ERROR);  
137 - }  
138 if ($w > 0 && $h > 0) { 134 if ($w > 0 && $h > 0) {
139 $path = $this->cacheImage($info, $w, $h); 135 $path = $this->cacheImage($info, $w, $h);
140 $content = file_get_contents($path); 136 $content = file_get_contents($path);
141 } else { 137 } else {
142 - $content = file_get_contents($path); 138 + $content = file_get_contents($info['path']);
143 } 139 }
144 return $content; 140 return $content;
145 } 141 }