修改了预约视频时间、增加了创建音视频房间接口

This commit is contained in:
2024-02-01 15:04:40 +08:00
parent fcfb84e6c6
commit 10aae768cb
11 changed files with 652 additions and 318 deletions
+8 -5
View File
@@ -24,14 +24,16 @@ class Safe extends Base
*/
public function validateSign(string $body, string $sign): bool
{
$token = config('video.token');
if (empty($token)) {
throw new BusinessException("Video Token Config Error");
}
// $token = config('video.token');
// if (empty($token)) {
// throw new BusinessException("Video Token Config Error");
// }
// dump($token);
$hash = hash_hmac( 'sha256', $body, "123654", true );
$hash = hash_hmac( 'sha256', $body, "NDc5MzExMDIYdusl2NDMxNDg5L", true );
$sys_sign = base64_encode($hash);
dump($sign);
dump($sys_sign);
if ($sign != $sys_sign) {
@@ -40,4 +42,5 @@ class Safe extends Base
return true;
}
}