瀏覽代碼

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());
             return $this->renderError($e->getMessage());
         }
         }
 
 
-        Log::error($filePathAbsolute);
+        Log::error($thumbnailFile);
+        //缩略图上传到谷歌
         $storageObj = $bucket->upload(
         $storageObj = $bucket->upload(
-            fopen($filePathAbsolute, 'r'),
+            fopen($thumbnailFile, 'r'),
             [
             [
                 'name' => $fileInfo['file_path']
                 'name' => $fileInfo['file_path']
             ]
             ]