tencentyun / cos-php-sdk-v5

cos-php-sdk-v5
MIT License
181 stars 82 forks source link

Call to a member function children() on bool #305

Closed shangdev closed 1 year ago

shangdev commented 1 year ago

在调用多文件打包压缩接口时,报错:Call to a member function children() on bool

代码示例:

$this->cosClient->createFileCompressJobs([
    'Bucket'    => $this->bucket,
    'Tag'       => 'FileCompress',
    'Operation' => [
        'FileCompressConfig' => [
            'Flatten' => '0',
            'Format'  => 'zip',
            'Keys'    => $keys,
        ],
        'Output'             => [
            'Region' => $this->region,
            'Bucket' => $this->bucket,
            'Object' => $key,
        ],
    ],
]);

image