diff --git a/src/CosAdapter.php b/src/CosAdapter.php index e0c46ab..156e3d1 100644 --- a/src/CosAdapter.php +++ b/src/CosAdapter.php @@ -19,6 +19,7 @@ use Overtrue\CosClient\BucketClient; use Overtrue\CosClient\Exceptions\ClientException; use Overtrue\CosClient\ObjectClient; +use TheNorthMemory\Xml\Transformer; class CosAdapter implements FilesystemAdapter { @@ -155,10 +156,8 @@ function ($item) { $response = $this->getObjectClient()->deleteObjects( [ - 'Delete' => [ - 'Quiet' => 'false', - 'Object' => $keys, - ], + 'Quiet' => 'false', + 'Object' => Transformer::wrap($keys, true, 'Object'), ] );