#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;
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user