php alist 签名算法
// $url = 'http://********:5244/d/cqhc-tool/zb_users/upload/2024/06/202406111718088043119549.png';
// $path = '/cqhc-tool/zb_users/upload/2024/06/202406111718088043119549.png'
// $expireTimeStamp= intval(microtime(1) * 1000) + 86400 * 1000;
static public function getSign($path, $token, $expireTimeStamp)
{
$to_sign = $path . ':' . $expireTimeStamp;
$hmac_result = hash_hmac('sha256', $to_sign, $token, true);
$_sign = base64_encode($hmac_result);
//$_sign = str_replace(array('+','/','='),array('-','_',''),$_sign);
$_sign = strtr($_sign, '+/', '-_');
$sign = $_sign . ':' . $expireTimeStamp;
return $sign;
}