|
|
@@ -63,7 +63,8 @@ class business
|
|
|
$normal = $prefixImgUrl . $imgUrl;
|
|
|
//没有小图则生成小图,兼容旧系统
|
|
|
if (file_exists($imageRoot . $smallImg) == false) {
|
|
|
- $preImg = $imageRoot . $imgUrl;
|
|
|
+ $noPreImgUrl = str_replace('/uploads','',$imgUrl);
|
|
|
+ $preImg = $imageRoot . $noPreImgUrl;
|
|
|
$imgInfo = getimagesize($preImg);
|
|
|
$width = $imgInfo[0];
|
|
|
$height = $imgInfo[1];
|