|
...
|
...
|
@@ -47,9 +47,7 @@ class TencentCosService extends BaseService |
|
|
|
$contentType = 'image/'.$image_type;
|
|
|
|
date_default_timezone_set('Asia/Shanghai');
|
|
|
|
$date = date('D, d M Y H:i:s \G\M\T');
|
|
|
|
$expiredTime = time() + 3600;
|
|
|
|
var_dump(date('Y-m-d H:i:s',$expiredTime));
|
|
|
|
die();
|
|
|
|
$expiredTime = time() + 3600000;
|
|
|
|
$filePath = $path.'/'.$fileName;
|
|
|
|
$stringToSign = "{$httpVerb}\n{$contentMd5}\n{$contentType}\n{$date}\n/{$this->config['bucket']}/{$filePath}";
|
|
|
|
$sign = base64_encode(hash_hmac('sha1', $stringToSign, $this->config['secretKey'], true));
|
...
|
...
|
|