修改了预约视频时间、增加了创建音视频房间接口
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user