diff --git a/sample/restoreObject.php b/sample/restoreObject.php index 79eeffbd..ce819549 100644 --- a/sample/restoreObject.php +++ b/sample/restoreObject.php @@ -13,7 +13,7 @@ 'secretId' => $secretId , 'secretKey' => $secretKey))); try { - $result = $cosClient->putObject(array( + $result = $cosClient->restoreObject(array( 'Bucket' => 'examplebucket-125000000', //格式:BucketName-APPID 'Key' => 'exampleobject', 'Days' => integer,