Skip to content

Commit 08954cb

Browse files
committed
rm my test code
1 parent 9944a01 commit 08954cb

File tree

3 files changed

+2
-117
lines changed

3 files changed

+2
-117
lines changed

qiniu/conf.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,5 @@
1616
$QINIU_API_HOST = 'http://api.qiniu.com';
1717
$QINIU_IOVIP_HOST = 'http://iovip.qbox.me';
1818

19-
// $QINIU_ACCESS_KEY = '<Please apply your access key>';
20-
// $QINIU_SECRET_KEY = '<Dont send your secret key to anyone>';
21-
22-
23-
$QINIU_ACCESS_KEY = 'Vhiv6a22kVN_zhtetbPNeG9sY3JUL1HG597EmBwQ';
24-
$QINIU_SECRET_KEY = 'b5b5vNg5nnkwkPfW5ayicPE_pj6hqgKMQEaWQ6JD';
25-
19+
$QINIU_ACCESS_KEY = '<Please apply your access key>';
20+
$QINIU_SECRET_KEY = '<Dont send your secret key to anyone>';

qiniu/demo.php

Lines changed: 0 additions & 106 deletions
This file was deleted.

qiniu/http.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,13 +157,11 @@ function Qiniu_Client_do($req) // => ($resp, $error)
157157
$respHeader = $responseArray[$responseArraySize-2];
158158
$respBody = $responseArray[$responseArraySize-1];
159159

160-
var_dump($respHeader);
161160
list($reqid, $xLog) = getReqInfo($respHeader);
162161

163162
$resp = new Qiniu_Response($code, $respBody);
164163
$resp->Header['Content-Type'] = $contentType;
165164
$resp->Header["X-Reqid"] = $reqid;
166-
167165
return array($resp, null);
168166
}
169167

@@ -206,7 +204,6 @@ public function RoundTrip($req) // => ($resp, $error)
206204
$incbody = Qiniu_Client_incBody($req);
207205
$token = $this->Mac->SignRequest($req, $incbody);
208206
$req->Header['Authorization'] = "QBox $token";
209-
210207
return Qiniu_Client_do($req);
211208
}
212209
}
@@ -238,7 +235,6 @@ function Qiniu_Client_Call($self, $url) // => ($data, $error)
238235
$u = array('path' => $url);
239236
$req = new Qiniu_Request($u, null);
240237
list($resp, $err) = $self->RoundTrip($req);
241-
242238
if ($err !== null) {
243239
return array(null, $err);
244240
}

0 commit comments

Comments
 (0)