|
@@ -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);
|
|
}
|
|
}
|