|
@@ -72,13 +72,13 @@ class Handle
|
|
|
|
|
|
$stream = $method->getInfo($info['key']);
|
|
|
|
|
|
- $live = array();
|
|
|
+ $status = array();
|
|
|
$history = array();
|
|
|
|
|
|
try {
|
|
|
- $live = $method->getLiveStatus($info['key']);
|
|
|
+ $status = $method->getLiveStatus($info['key']);
|
|
|
} catch (\Exception $e) {
|
|
|
- $live = array();
|
|
|
+ $status = array();
|
|
|
}
|
|
|
|
|
|
try {
|
|
@@ -96,10 +96,10 @@ class Handle
|
|
|
|
|
|
$live = Dever::json_decode($info['info']);
|
|
|
$live['info'] = $stream;
|
|
|
- $live['live'] = $live;
|
|
|
+ $live['live'] = $status;
|
|
|
$live['hitory'] = $history;
|
|
|
|
|
|
- if ($live) {
|
|
|
+ if ($status) {
|
|
|
$data['status'] = 2;
|
|
|
} else {
|
|
|
$data['status'] = 1;
|