Skip to content

Commit

Permalink
feat: 空地址不用签名
Browse files Browse the repository at this point in the history
  • Loading branch information
twinh committed Jun 17, 2018
1 parent fafcd8a commit 7ea8732
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Service/TencentyunCosV5.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ public function __construct(array $options = [])

public function signUrl($url, $seconds = 60)
{
if (!$url) {
return $url;
}

if ($this->domain) {
return $url . '?sign=' . $this->generateSign($seconds);
}
Expand Down

0 comments on commit 7ea8732

Please sign in to comment.