dever %!s(int64=6) %!d(string=hai) anos
pai
achega
57cd2aa3c6

+ 1 - 1
live/database/stream_ios_log.php

@@ -139,7 +139,7 @@ return array
             'desc'      => '直播回放地址',
             'match'     => 'option',
             //'update'    => 'text',
-            //'list'      => true,
+            'list'      => true,
         ),
 
         'state'     => array

+ 2 - 2
live/database/stream_log.php

@@ -128,7 +128,7 @@ return array
             'desc'      => '直播回放地址',
             'match'     => 'option',
             //'update'    => 'text',
-            //'list'      => true,
+            'list'      => true,
         ),
 
         'url_mp4'      => array
@@ -139,7 +139,7 @@ return array
             'desc'      => '直播回放地址',
             'match'     => 'option',
             //'update'    => 'text',
-            //'list'      => true,
+            'list'      => true,
         ),
 
         'state'     => array

+ 1 - 0
live/lib/Handle.php

@@ -73,6 +73,7 @@ class Handle
                 $data['url_m3u8'] = $config['host'] . $method->save($info['key'],$log['sdate'], $log['edate']);
                 //$data['url_mp4'] = $config['host'] . $method->save($info['key'], $log['sdate'], $log['edate'], 'mp4');
                 $data['url_mp4'] = '';
+                $data['url_mp4'] = $config['host'] . $method->save($info['key'], $log['sdate'], $log['edate'], 'mp4');
             } catch (\Exception $e) {
                 $data['url_m3u8'] = $data['url_mp4'] = '';
             }

+ 0 - 7
main/src/Preview.php

@@ -30,11 +30,6 @@ class Preview
         $scene = -1 . ',' . $type . ',' . $id;
 
         //echo $scene;die;
-        if ($type == 4) {
-
-        } else {
-            $info['cate_id'] = 1;
-        }
         $send['project'] = $info['cate_id'];
         $send['send'] = $scene;
         $send['width'] = 152;
@@ -45,14 +40,12 @@ class Preview
         $table['预览小程序码'] = $html;
         //$table['测试二维码'] = '暂时没有';
 
-        /*
         if ($type == 3) {
             if ($info['url_m3u8']) {
                 $table['m3u8回放地址'] = $info['url_m3u8'];
                 $table['mp4回放地址'] = $info['url_mp4'];
             }
         }
-        */
 
         return Dever::table($table);
     }