#bugfix: fix COS config
This commit is contained in:
parent
b3bbfb7e7f
commit
ede91ae16e
12
jobs/cos.php
12
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user