|
@@ -38,9 +38,13 @@ class UploadController extends BaseController
|
|
|
util::fail('上传失败!!');
|
|
util::fail('上传失败!!');
|
|
|
}
|
|
}
|
|
|
$img = "/uploads/{$merchantId}/{$month}/{$date}/" . $newFile;
|
|
$img = "/uploads/{$merchantId}/{$month}/{$date}/" . $newFile;
|
|
|
-
|
|
|
|
|
- $r = getimagesize($fullPath);
|
|
|
|
|
- dd($r);
|
|
|
|
|
|
|
+
|
|
|
|
|
+ $imgInfo = getimagesize($fullPath);
|
|
|
|
|
+ $width = $imgInfo[0];
|
|
|
|
|
+ $height = $imgInfo[1];
|
|
|
|
|
+ if($width > 800){
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
$new = $path.$preFileName.'_small.'.$type;
|
|
$new = $path.$preFileName.'_small.'.$type;
|
|
|
//压缩
|
|
//压缩
|