正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -53,7 +53,7 @@ class TencentCosService extends BaseService | @@ -53,7 +53,7 @@ class TencentCosService extends BaseService | ||
| 53 | $stringToSign = "{$httpVerb}\n{$contentMd5}\n{$contentType}\n{$date}\n/{$this->config['bucket']}/{$filePath}"; | 53 | $stringToSign = "{$httpVerb}\n{$contentMd5}\n{$contentType}\n{$date}\n/{$this->config['bucket']}/{$filePath}"; |
| 54 | $sign = base64_encode(hash_hmac('sha1', $stringToSign, $this->config['secretKey'], true)); | 54 | $sign = base64_encode(hash_hmac('sha1', $stringToSign, $this->config['secretKey'], true)); |
| 55 | $authorization = | 55 | $authorization = |
| 56 | - "q-sign-algorithm=sha1&q-ak={$this->config['secretId']}&q-sign-time={$time}:{$expiredTime}&q-key-time={$time}:{$expiredTime}&q-header-list=&q-url-param-list=&q-signature={$sign}"; | 56 | + "q-sign-algorithm=sha1&q-ak={$this->config['secretId']}&q-sign-time={$time};{$expiredTime}&q-key-time={$time};{$expiredTime}&q-header-list=&q-url-param-list=&q-signature={$sign}"; |
| 57 | $url = "https://{$this->config['bucket']}.cos.{$this->config['cosRegion']}.myqcloud.com{$filePath}"; | 57 | $url = "https://{$this->config['bucket']}.cos.{$this->config['cosRegion']}.myqcloud.com{$filePath}"; |
| 58 | // 打开文件流 | 58 | // 打开文件流 |
| 59 | $filePathUrl = config('filesystems.disks.upload')['root'].$path.'/'.$fileName; | 59 | $filePathUrl = config('filesystems.disks.upload')['root'].$path.'/'.$fileName; |
-
请 注册 或 登录 后发表评论