diff --git a/Application/Admin/Controller/AutoPackController.class.php b/Application/Admin/Controller/AutoPackController.class.php index 59eb2715e..824ae7f8a 100644 --- a/Application/Admin/Controller/AutoPackController.class.php +++ b/Application/Admin/Controller/AutoPackController.class.php @@ -3,21 +3,10 @@ namespace Admin\Controller; use Qiniu\Storage\UploadManager; -use User\Api\UserApi as UserApi; -use OSS\OssClient; use OSS\Core\OSsException; use Qiniu\Storage\BucketManager; use Qiniu\Auth; -use Think\Controller; -use BaiduBce\BceClientConfigOptions; -use BaiduBce\Util\Time; -use BaiduBce\Util\MimeTypes; -use BaiduBce\Http\HttpHeaders; use BaiduBce\Services\Bos\BosClient; -use BaiduBce\Services\Bos\CannedAcl; -use BaiduBce\Services\Bos\BosOptions; -use BaiduBce\Auth\SignOptions; -use BaiduBce\Log\LogFactory; use Think\Think; use Base\Service\GameSourceService; use Base\Tool\Printer; diff --git a/Application/Base/Tool/ObsClient.class.php b/Application/Base/Tool/ObsClient.class.php index e27f16769..0fa326ce7 100644 --- a/Application/Base/Tool/ObsClient.class.php +++ b/Application/Base/Tool/ObsClient.class.php @@ -27,7 +27,11 @@ class ObsClient implements StorageClient $this->endpoint = C('OBS_ENDPOINT'); $this->domain = C('OBS_DOMAIN'); $this->bucket = C('OBS_BUCKET'); - $this->client = new BaseObsClient($this->accessKey, $this->secretKey, $this->endpoint); + $this->client = new BaseObsClient([ + 'key' => $this->accessKey, + 'secret' => $this->secretKey, + 'endpoint' => $this->endpoint + ]); } public function upload($localFilePath, $saveFileName)