dever 4 年之前
父節點
當前提交
cc4f571108
共有 2 個文件被更改,包括 9 次插入4 次删除
  1. 1 1
      app/content/database/video.php
  2. 8 3
      app/content/lib/Manage.php

+ 1 - 1
app/content/database/video.php

@@ -76,7 +76,7 @@ return array
 			'update'	=> 'image',
 			'key' 		=> '1',
 			'place'		=> '750*1386',
-            //'list'      => 'Dever::load("content/lib/manage.pic", "{pic}")',
+            'list'      => 'Dever::load("content/lib/manage.pic", "{pic}")',
 		),
 
         'video'     => array

+ 8 - 3
app/content/lib/Manage.php

@@ -61,10 +61,15 @@ class Manage
     # 查看图片
     public function pic($pic)
     {
-        $table = array();
-        $table[0] = '<img src="'.$pic.'" width=“150”/>';
+        if ($pic) {
+            $table = array();
+            $table[0] = '<img src="'.$pic.'" width="150"/>';
 
-        return Dever::table($table);
+            return Dever::table($table);
+        } else {
+            return '';
+        }
+        
     }
 
     public function picGrid($text)