Skip to content

Commit 4a43ef3

Browse files
committed
fix:fix return error
1 parent 2920e0c commit 4a43ef3

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/Qiniu/Storage/BucketManager.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -925,6 +925,7 @@ public function asynchFetchStatus($zone, $id)
925925
$response = $this->getV2($url);
926926

927927
if (!$response->ok()) {
928+
print("statusCode: " . $response->statusCode);
928929
return array(null, new Error($url, $response));
929930
}
930931
return array($response->json(), null);
@@ -1078,11 +1079,7 @@ private function get($url)
10781079
private function getV2($url)
10791080
{
10801081
$headers = $this->auth->authorizationV2($url, 'GET');
1081-
$ret = Client::get($url, $headers);
1082-
if (!$ret->ok()) {
1083-
return array(null, new Error($url, $ret));
1084-
}
1085-
return $ret;
1082+
return Client::get($url, $headers);;
10861083
}
10871084

10881085
private function post($url, $body)

0 commit comments

Comments
 (0)