#bugfix: fix COS config

This commit is contained in:
tradewind 2022-11-22 14:47:51 +08:00
parent b3bbfb7e7f
commit ede91ae16e

View File

@ -4,10 +4,12 @@ require_once __DIR__ . '/../init.php';
global $globalConfig; global $globalConfig;
$bucket = $globalConfig['bucket']; $cosConfig = $globalConfig['COS'];
$secretId = $globalConfig['secretId'];
$secretKey = $globalConfig['secretKey']; $bucket = $cosConfig['bucket'];
$region = $globalConfig['region']; $secretId = $cosConfig['secretId'];
$secretKey = $cosConfig['secretKey'];
$region = $cosConfig['region'];
$cosClient = new Qcloud\Cos\Client( $cosClient = new Qcloud\Cos\Client(
@ -40,7 +42,7 @@ try {
'StorageClass' => 'DEEP_ARCHIVE' 'StorageClass' => 'DEEP_ARCHIVE'
] ]
); );
var_dump(json_encode($result)); var_dump($result);
} }
} }
} }