dever 4 years ago
parent
commit
994473b978
3 changed files with 17 additions and 2 deletions
  1. 13 1
      app/collection/database/page.php
  2. 3 0
      app/collection/lib/Content.php
  3. 1 1
      app/content/database/video.php

+ 13 - 1
app/collection/database/page.php

@@ -161,7 +161,7 @@ return array
         'pic'     => array
         (
             'type'      => 'varchar-150',
-            'name'      => '图片-章节图片,图片尺寸可随意,尽量为330*330px或等比尺寸,上传大小不能超过2M,支持JPG、PNG、GIF格式,建议上传JPG格式',
+            'name'      => '图片-章节图片,一般作为开头的封面图片尺寸为330*330px或等比尺寸,上传大小不能超过2M,支持JPG、PNG、GIF格式,建议上传JPG格式',
             'default'   => '',
             'desc'      => '章节图片',
             'match'     => 'option',
@@ -194,6 +194,18 @@ return array
             //'list'        => true,
         ),
 
+        'pic_end'     => array
+        (
+            'type'      => 'varchar-150',
+            'name'      => '完结图片-章节图片,一般作为结尾的封面图片,尺寸为330*330px或等比尺寸,上传大小不能超过2M,支持JPG、PNG、GIF格式,建议上传JPG格式',
+            'default'   => '',
+            'desc'      => '完结图片',
+            'match'     => 'option',
+            'update'    => $page_id < 0 ? 'hidden': 'image',
+            'key'       => '1',
+            'place'     => '330*330',
+        ),
+
 		'reorder'		=> array
 		(
 			'type' 		=> 'int-11',

+ 3 - 0
app/collection/lib/Content.php

@@ -85,6 +85,9 @@ class Content
             if ($page && $page['desc_end']) {
                 $result[$i] = $result[0];
                 $result[$i]['desc'] = $page['desc_end'];
+                if ($page['pic_end']) {
+                    $result[$i]['pic'] = $page['pic_end'];
+                }
             }
 		}
 

+ 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