songxingwei 3 years ago
parent
commit
c37c7ff800
1 changed files with 4 additions and 1 deletions
  1. 4 1
      application/api/controller/Publics.php

+ 4 - 1
application/api/controller/Publics.php

@@ -40,7 +40,10 @@ class Publics extends Api
             mkdir($dir, 0700,true);
         }
 
-        $ossClient = new OssClient(self::getOneValues('storage_oss_keyid'), self::getOneValues('storage_oss_secret'), self::getOneValues('storage_oss_endpoint'));
+        $ossClient = new OssClient(
+            self::getOneValues('storage_oss_keyid'),
+            self::getOneValues('storage_oss_secret'),
+            self::getOneValues('storage_oss_endpoint'));
         $info = $file->move($dir);
         $newName = $info->getSaveName();
         $storage_type = self::getOneValues('storage_type');