From ede91ae16e0483d86fdb472e870076ee8589d91c Mon Sep 17 00:00:00 2001 From: tradewind Date: Tue, 22 Nov 2022 14:47:51 +0800 Subject: [PATCH] #bugfix: fix COS config --- jobs/cos.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/jobs/cos.php b/jobs/cos.php index b615f85..ad47dd3 100644 --- a/jobs/cos.php +++ b/jobs/cos.php @@ -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); } } }