소스 검색

thumbnail image

zhangdehua 7 달 전
부모
커밋
dcdcf4e71f
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      app/store/controller/Upload.php

+ 3 - 2
app/store/controller/Upload.php

@@ -88,9 +88,10 @@ class Upload extends Controller
             return $this->renderError($e->getMessage());
         }
 
-        Log::error($filePathAbsolute);
+        Log::error($thumbnailFile);
+        //缩略图上传到谷歌
         $storageObj = $bucket->upload(
-            fopen($filePathAbsolute, 'r'),
+            fopen($thumbnailFile, 'r'),
             [
                 'name' => $fileInfo['file_path']
             ]