Skip to content

Commit e0a05a7

Browse files
committed
修改错误
1 parent cc022f3 commit e0a05a7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

examples/saveas.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,11 @@
1616
//使用SecretKey对新的下载URL进行HMAC1-SHA1签名
1717
$newurl = "78re52.com1.z0.glb.clouddn.com/resource/Ship.jpg?imageView2/2/w/200/h/200|saveas/".$encodedEntryURI;
1818

19-
$sign = hash_hmac("sha1", $newurl,$secretKey, true);
19+
$sign = hash_hmac("sha1", $newurl, $secretKey, true);
2020

2121
//对签名进行URL安全的Base64编码
2222
$encodedSign = \Qiniu\base64_urlSafeEncode($sign);
2323
//最终得到的完整下载URL
2424
$finalURL = "http://".$newurl."/sign/".$accessKey.":".$encodedSign;
2525

2626
return $finalURL;
27-
28-
?>

0 commit comments

Comments
 (0)