We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc022f3 commit e0a05a7Copy full SHA for e0a05a7
examples/saveas.php
@@ -16,13 +16,11 @@
16
//使用SecretKey对新的下载URL进行HMAC1-SHA1签名
17
$newurl = "78re52.com1.z0.glb.clouddn.com/resource/Ship.jpg?imageView2/2/w/200/h/200|saveas/".$encodedEntryURI;
18
19
- $sign = hash_hmac("sha1", $newurl,$secretKey, true);
+ $sign = hash_hmac("sha1", $newurl, $secretKey, true);
20
21
//对签名进行URL安全的Base64编码
22
$encodedSign = \Qiniu\base64_urlSafeEncode($sign);
23
//最终得到的完整下载URL
24
$finalURL = "http://".$newurl."/sign/".$accessKey.":".$encodedSign;
25
26
return $finalURL;
27
-
28
-?>
0 commit comments