|
|
@@ -37,7 +37,7 @@ class ImageService
|
|
|
|
|
|
Yii::info('url:' . $url);
|
|
|
//上传oss
|
|
|
- //oss::uploadImage($middle,$fullFileName);
|
|
|
+ oss::uploadImage($fileName,$fullFileName);
|
|
|
|
|
|
$imgInfo = getimagesize($fullFileName);
|
|
|
if (empty($imgInfo) || isset($imgInfo[0]) == false) {
|
|
|
@@ -55,6 +55,9 @@ class ImageService
|
|
|
}
|
|
|
$smallFullPathFile = $path . $middle . $middleName . '_small.jpg';
|
|
|
Image::thumbnail($fullFileName, $smallWidth, $smallHeight)->save($smallFullPathFile, ['quality' => 100]);
|
|
|
+
|
|
|
+ oss::uploadImage($middle . $middleName . '_small.jpg',$smallFullPathFile);
|
|
|
+
|
|
|
return $fileName;
|
|
|
}
|
|
|
|