dever 6 years ago
parent
commit
5570cee0cb
2 changed files with 7 additions and 1 deletions
  1. 1 0
      content/lib/Applet.php
  2. 6 1
      main/src/Preview.php

+ 1 - 0
content/lib/Applet.php

@@ -9,6 +9,7 @@ class Applet
     # 更新数据
     public function update_api()
     {
+        $value = Dever::input('value');
         $applet = Dever::db('content/applet')->state();
 
         $option = '<option parent="" value="" selected>当前小程序</option>';

+ 6 - 1
main/src/Preview.php

@@ -47,7 +47,12 @@ class Preview
         $html = '<img src="'.$logo.'" width="150">';
 
         $table['预览小程序码'] = $html;
-        //$table['测试二维码'] = '暂时没有';
+
+        if ($type == 1 || $type == 2 || $type == 3 || $type == 6) {
+            $link = Dever::url('view.get?type=' . $type . '&id=' . $id, 'h5');
+            $table['h5页面'] = '<a href="'.$link.'" target="_blank">点此访问</a>';
+        }
+        
 
         if ($type == 3) {
             if ($info['url_m3u8']) {