#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;
$bucket = $globalConfig['bucket'];
$secretId = $globalConfig['secretId'];
$secretKey = $globalConfig['secretKey'];
$region = $globalConfig['region'];
$cosConfig = $globalConfig['COS'];
$bucket = $cosConfig['bucket'];
$secretId = $cosConfig['secretId'];
$secretKey = $cosConfig['secretKey'];
$region = $cosConfig['region'];
$cosClient = new Qcloud\Cos\Client(
@ -40,7 +42,7 @@ try {
'StorageClass' => 'DEEP_ARCHIVE'
]
);
var_dump(json_encode($result));
var_dump($result);
}
}
}