dever 6 rokov pred
rodič
commit
78cd500624
1 zmenil súbory, kde vykonal 2 pridanie a 6 odobranie
  1. 2 6
      video/lib/Live.php

+ 2 - 6
video/lib/Live.php

@@ -30,13 +30,9 @@ class Live
             $data['stream_hdl'] = $stream['url_hdl'];
             $data['stream_pic'] = $stream['url_pic'];
             $data['status'] = 2;
-        }
-
-        if ($data['sdate'] > $time) {
+        } elseif ($data['sdate'] > $time) {
             $data['status'] = 1;
-        }
-
-        if ($data['edate'] <= $time) {
+        } elseif ($data['edate'] <= $time) {
             $data['status'] = 3;
             if (!$data['url']) {
                 # 回放生成中