tencentyun / cos-php-sdk-v5

cos-php-sdk-v5
MIT License
183 stars 82 forks source link

fix expries may be null #153

Closed Tabll closed 4 years ago

Tabll commented 4 years ago

expires 在外面调用的默认值是 null

(string)(strtotime(null) 会是一个空值,会导致过期时间为空 这样生成的链接访问的时候报超时错误:

<Error>
<Code>AccessDenied</Code>
<Message>Request has expired</Message>
<ServerTime>2020-06-17T05:37:29Z</ServerTime>

建议判断一下 expires 是否为空

lewzylu commented 4 years ago

感谢您的建议