dever 6 years ago
parent
commit
7d497b575e
2 changed files with 2 additions and 1 deletions
  1. 1 0
      live/database/stream.php
  2. 1 1
      live/src/Api.php

+ 1 - 0
live/database/stream.php

@@ -285,6 +285,7 @@ return array
                 'online' => 'yes',
                 'key' => 'yes',
                 'live_id' => 'yes',
+                'active_id' => 'yes',
                 'state' => 1,
             ),
             'type' => 'all',

+ 1 - 1
live/src/Api.php

@@ -25,7 +25,7 @@ class Api
 
         if ($data) {
             foreach ($data as $k => $v) {
-                $data[$k]['stream'] = Dever::db('live/stream')->getAll(array('live_id' => $v['id']));
+                $data[$k]['stream'] = Dever::db('live/stream')->getAll(array('active_id' => $v['id']));
                 if ($data[$k]['stream']) {
                 	foreach ($data[$k]['stream'] as $k1 => $v1) {
                 		if (!$v1['url_rtmp']) {