mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-31 06:50:51 +00:00
更新腾讯云存储同步问题。
This commit is contained in:
parent
51d849d920
commit
32666baf1e
@ -314,12 +314,7 @@ class SystemStorageServices extends BaseServices
|
||||
break;
|
||||
case 4:// cos 腾讯云
|
||||
$upload = UploadService::init($type);
|
||||
$cosList = $upload->listbuckets();
|
||||
if (isset($cosList['Name'])) {
|
||||
$list[] = $cosList;
|
||||
} else {
|
||||
$list = $cosList;
|
||||
}
|
||||
$list = $upload->listbuckets();
|
||||
$config = $this->getStorageConfig($type);
|
||||
foreach ($list as $item) {
|
||||
if (!$this->dao->count(['name' => $item['Name'], 'access_key' => $config['accessKey']])) {
|
||||
|
||||
@ -380,7 +380,7 @@ class Cos extends BaseUpload
|
||||
{
|
||||
try {
|
||||
$res = $this->app()->listBuckets();
|
||||
return $res->toArray()['Buckets'] ?? [];
|
||||
return $res['Buckets']['Bucket'] ?? [];
|
||||
} catch (\Throwable $e) {
|
||||
return [];
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user