正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -46,7 +46,7 @@ class TencentCosService extends BaseService | @@ -46,7 +46,7 @@ class TencentCosService extends BaseService | ||
| 46 | $contentMd5 = ''; | 46 | $contentMd5 = ''; |
| 47 | $contentType = 'image/'.$image_type; | 47 | $contentType = 'image/'.$image_type; |
| 48 | $date = date('D, d M Y H:i:s \G\M\T'); | 48 | $date = date('D, d M Y H:i:s \G\M\T'); |
| 49 | - $time = time(); | 49 | + $time = time() - 3600000; |
| 50 | $expiredTime = time() + 3600000; | 50 | $expiredTime = time() + 3600000; |
| 51 | $filePath = $path.'/'.$fileName; | 51 | $filePath = $path.'/'.$fileName; |
| 52 | $stringToSign = "{$httpVerb}\n{$contentMd5}\n{$contentType}\n{$date}\n/{$this->config['bucket']}/{$filePath}"; | 52 | $stringToSign = "{$httpVerb}\n{$contentMd5}\n{$contentType}\n{$date}\n/{$this->config['bucket']}/{$filePath}"; |
-
请 注册 或 登录 后发表评论