zhangdehua 7 mesi fa
parent
commit
7b357980cf
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      app/store/controller/Upload.php

+ 1 - 1
app/store/controller/Upload.php

@@ -75,7 +75,7 @@ class Upload extends Controller
         $storage = new StorageClient(['projectId' => 'dihua-01', 'keyFilePath' => $keyFilePath]);
         $bucket = $storage->bucket('freeshippingvps');
 
-        $filePath = config('app.host') . '/uploads/' . $fileInfo['file_path'];
+        $filePath = config('app.app_host') . '/uploads/' . $fileInfo['file_path'];
         Log::error($filePath);
         $storageObj = $bucket->upload(
             fopen($filePath, 'r'),