mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-11-07 18:30:37 +00:00
Merge branch 'v5.0.0dev' of https://gitee.com/ZhongBangKeJi/CRMEB into v5.0.0dev
This commit is contained in:
commit
62f821670c
@ -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