作者 lyh

gx

@@ -47,7 +47,7 @@ class TencentCosService extends BaseService @@ -47,7 +47,7 @@ class TencentCosService extends BaseService
47 $contentType = 'image/'.$image_type; 47 $contentType = 'image/'.$image_type;
48 date_default_timezone_set('Asia/Shanghai'); 48 date_default_timezone_set('Asia/Shanghai');
49 $date = date('D, d M Y H:i:s \G\M\T'); 49 $date = date('D, d M Y H:i:s \G\M\T');
50 - $time = time() - 3600000; 50 + $time = time();
51 $expiredTime = time() + 3600000; 51 $expiredTime = time() + 3600000;
52 $filePath = $path.'/'.$fileName; 52 $filePath = $path.'/'.$fileName;
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}";