$data['qiniu_accessKey'], 'secretKey' => $data['qiniu_secretKey'], 'uploadUrl' => $data['qiniu_uploadUrl'], 'storageName' => $data['qiniu_storage_name'], 'storageRegion' => $data['qiniu_storage_region'], ]; break; case 3:// oss 阿里云 $data = systemConfig(['accessKey', 'secretKey', 'uploadUrl', 'storage_name', 'storage_region']); $config = [ 'accessKey' => $data['accessKey'], 'secretKey' => $data['secretKey'], 'uploadUrl' => $data['uploadUrl'], 'storageName' => $data['storage_name'], 'storageRegion' => $data['storage_region'], ]; break; case 4:// cos 腾讯云 $data = systemConfig(['tengxun_accessKey', 'tengxun_secretKey', 'tengxun_uploadUrl', 'tengxun_storage_name', 'tengxun_storage_region']); $config = [ 'accessKey' => $data['tengxun_accessKey'], 'secretKey' => $data['tengxun_secretKey'], 'uploadUrl' => $data['tengxun_uploadUrl'], 'storageName' => $data['tengxun_storage_name'], 'storageRegion' => $data['tengxun_storage_region'], ]; break; } return new Upload($type, $config); } }