|
@@ -443,7 +443,7 @@ class LiveingController extends AdminbaseController {
|
|
|
$domain = $this->pushDomain;
|
|
|
$key = $this->pushKey;
|
|
|
|
|
|
- $txTime = strtoupper( base_convert( strtotime( $time ), 10, 16 ) );
|
|
|
+ $txTime = strtoupper( base_convert( $time, 10, 16 ) );
|
|
|
//txSecret = MD5( KEY + streamName + txTime )
|
|
|
$txSecret = md5( $key . $streamName . $txTime );
|
|
|
return "?" . http_build_query( array(
|
|
@@ -454,12 +454,12 @@ class LiveingController extends AdminbaseController {
|
|
|
}
|
|
|
|
|
|
|
|
|
- public function getPullUrl( $appName, $streamName, $time )
|
|
|
+ public function getPullUrl( $appName, $streamName, $time ): array
|
|
|
{
|
|
|
$domain = $this->pullDomain;
|
|
|
$key = $this->pullKey;
|
|
|
|
|
|
- $txTime = strtoupper( base_convert( strtotime( $time ), 10, 16 ) );
|
|
|
+ $txTime = strtoupper( base_convert( $time , 10, 16 ) );
|
|
|
//txSecret = MD5( KEY + streamName + txTime )
|
|
|
$txSecret = md5( $key . $streamName . $txTime );
|
|
|
$build_data = [
|