做个记录
<?php function PrivateKeyA(){
$time=strtotime("+10 minute");
$key="ym740c81faj4u89xyz"; //鉴权密钥(限制6~32位字符,由大小写字母或数字组成)
$filename="/2.jpg";
//$sstring = "URI-Timestamp-rand-uid-PrivateKey"
$sstring = $filename."-".$time."-0-0-".$key;
$md5=md5($sstring);
$auth_key="sign=".$time."-0-0-".$md5;
$url="https://test.file.qcloud.com".$domain.$filename."?".$auth_key."&imageMogr2/thumbnail/!50p";
echo $url."\n";
}
PrivateKeyA();