dever 6 年之前
父节点
当前提交
d1ad53ba13
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 5 5
      live/lib/Handle.php

+ 5 - 5
live/lib/Handle.php

@@ -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;