This commit is contained in:
2024-01-31 09:12:27 +08:00
parent 13491ac601
commit fcfb84e6c6
2 changed files with 31 additions and 14 deletions
+3 -1
View File
@@ -29,9 +29,11 @@ class Safe extends Base
throw new BusinessException("Video Token Config Error");
}
$hash = hash_hmac( 'sha256', $body, $token, true );
$hash = hash_hmac( 'sha256', $body, "123654", true );
$sys_sign = base64_encode($hash);
dump($sign);
dump($sys_sign);
if ($sign != $sys_sign) {
return false;
}