作者 lyh

gx

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