dever 6 năm trước cách đây
mục cha
commit
568b82d2cb
2 tập tin đã thay đổi với 18 bổ sung4 xóa
  1. 1 0
      doc/apidoc.php
  2. 17 4
      journal/database/content.php

+ 1 - 0
doc/apidoc.php

@@ -726,6 +726,7 @@
  * @apiSuccess {String}   content.id 内容id
  * @apiSuccess {String}   content.type 内容类型1全屏图、2长图、3图文内容、11关联图文、12关联视频、13关联直播、4全屏视频、5留言视频、6留言音频
  * @apiSuccess {String}   content.name 标题。type=5,6时有效
+ * @apiSuccess {String}   content.cover 音频或者视频的封面图,type=4,5,6时有效
  * @apiSuccess {String}   content.video 视频地址。type=4,5时有效
  * @apiSuccess {String}   content.music 音频地址。type=6时有效
  * @apiSuccess {String}   content.pic 全屏图或者长图,type=1,2时有效

+ 17 - 4
journal/database/content.php

@@ -7,9 +7,9 @@ $type = array
     1 => '全屏图',
     2 => '长图',
     # 2018-12-11 增加3个类型
-    //4 => '全屏视频',
-    //5 => '留言视频',
-    //6 => '留言音频',
+    4 => '全屏视频',
+    5 => '留言视频',
+    6 => '留言音频',
 
     # 关联类型 > 10
     11 => '关联图文',
@@ -153,6 +153,19 @@ return array
             'show'      => 'type=6',      
         ),
 
+        'cover'     => array
+        (
+            'type'      => 'varchar-150',
+            'name'      => '封面图',
+            'default'   => '',
+            'desc'      => '封面图',
+            'match'     => 'option',
+            'update'    => 'image',
+            'key'       => '1',
+            'place'     => '150',
+            'show'      => 'type=4,5,6',      
+        ),
+
         'focus'     => array
         (
             'type'      => 'text-255',
@@ -160,7 +173,7 @@ return array
             'default'   => '',
             'desc'      => '焦点图',
             'match'     => 'option',
-            'update'  => 'image',
+            'update'    => 'image',
             'key'       => '1',
             'place'     => '150',
             'show'      => 'type=3',