dever 6 năm trước cách đây
mục cha
commit
6cdb58db71
1 tập tin đã thay đổi với 16 bổ sung2 xóa
  1. 16 2
      main/src/Preview.php

+ 16 - 2
main/src/Preview.php

@@ -24,15 +24,29 @@ class Preview
         $info = Dever::db($table)->one($id);
         $info = Dever::db($table)->one($id);
 
 
     	$table = array();
     	$table = array();
-        $table['正式二维码'] = '暂时没有';
-        $table['测试二维码'] = '暂时没有';
 
 
+        $path = Dever::config('base')->applet_index;
+        $scene = Dever::login(-1) . ',' . $type . ',' . $id;
+
+        //echo $scene;die;
+        $send['project'] = 1;
+        $send['send'] = $scene;
+        $send['width'] = 152;
+        $send['path'] = $path; 
+        //$logo = Dever::load('wechat_applet/code.get', $send);
+        //$html = '<img src="'.$logo.'" width="150">';
+
+        $table['预览小程序码'] = '暂时没有';
+        //$table['测试二维码'] = '暂时没有';
+
+        /*
         if ($type == 3) {
         if ($type == 3) {
             if ($info['url_m3u8']) {
             if ($info['url_m3u8']) {
                 $table['m3u8回放地址'] = $info['url_m3u8'];
                 $table['m3u8回放地址'] = $info['url_m3u8'];
                 $table['mp4回放地址'] = $info['url_mp4'];
                 $table['mp4回放地址'] = $info['url_mp4'];
             }
             }
         }
         }
+        */
 
 
         return Dever::table($table);
         return Dever::table($table);
     }
     }