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

+ 8 - 4
live/lib/Handle.php

@@ -73,14 +73,18 @@ class Handle
         $stream = $method->getInfo($info['key']);
 
         $live = array();
-        $hitory = array();
-        
+        $history = array();
+
         try {
             $live = $method->getLiveStatus($info['key']);
-            $hitory = $method->history($info['key']);
         } catch (\Exception $e) {
             $live = array();
-            $hitory = array();
+        }
+
+        try {
+            $history = $method->history($info['key']);
+        } catch (\Exception $e) {
+            $history = array();
         }
 
         $data['where_id'] = $info['id'];