dever 6 years ago
parent
commit
4dd3ea59b5
2 changed files with 29 additions and 2 deletions
  1. 17 2
      push/database/data.php
  2. 12 0
      push/database/info.php

+ 17 - 2
push/database/data.php

@@ -43,6 +43,7 @@ if ($info) {
     $link_state = in_array(2, $info['col']);
     $pic_state = in_array(3, $info['col']);
     $content_state = in_array(4, $info['col']);
+    $share_pic_state = in_array(5, $info['col']);
 
     /*
     if ($info['data_type']) {
@@ -53,6 +54,7 @@ if ($info) {
     $info = array();
     $info['name'] = '推送数据管理';
     $info['col_pic'] = '100X100';
+    $info['col_share_pic'] = '100X100';
     $info['col_content'] = '30';
     $info['type'] = 1;
     $name_state = true;
@@ -241,6 +243,19 @@ return array
             'key'       => 1
         ),
 
+        'share_pic'       => array
+        (
+            'type'      => 'varchar-200',
+            'name'      => '分享图片-请上传' . $info['col_share_pic'] . '大小的图片',
+            'default'   => '',
+            'desc'      => '分享图片',
+            'match'     => $share_pic_state ? 'option' : 'option',
+            'update'    => $share_pic_state ? 'image' : 'hidden',
+            'search'    => $share_pic_state ? 'fulltext' : '',
+            //'list'        => $share_pic_state ? true : false,
+            'key'       => 1
+        ),
+
         'content'       => array
         (
             'type'      => 'text-255',
@@ -303,7 +318,7 @@ return array
             'type' => 'all',
             'order' => array('reorder' => 'desc', 'id' => 'desc'),
             'limit' => '0,10',
-            'col' => 'name,pic,olink as link,type,article_id,vod_id,live_id,journal_id,feature_id,applet_id,cdate',
+            'col' => 'name,pic,share_pic,olink as link,type,article_id,vod_id,live_id,journal_id,feature_id,applet_id,cdate',
         ),
 
         # 获取列表页 带有分页的
@@ -319,7 +334,7 @@ return array
             'type' => 'all',
             'order' => array('reorder' => 'desc', 'id' => 'desc'),
             'page' => array(10, 'list'),
-            'col' => 'name,pic,olink as link,type,article_id,vod_id,live_id,journal_id,feature_id,applet_id,cdate',
+            'col' => 'name,pic,share_pic,olink as link,type,article_id,vod_id,live_id,journal_id,feature_id,applet_id,cdate',
         ),
     ),
 );

+ 12 - 0
push/database/info.php

@@ -44,6 +44,7 @@ $col = array
     //2 => '链接',
     3 => '图片',
     //4 => '描述',
+    5 => '分享图片',
 );
 
 return array
@@ -205,6 +206,17 @@ return array
             'show'      => 'col=3',
         ),
 
+        'col_share_pic'       => array
+        (
+            'type'      => 'varchar-20',
+            'name'      => '分享图片尺寸提醒-请直接输入提醒的文字即可,如100X100',
+            'default'   => '100X100',
+            'desc'      => '分享图片尺寸提醒',
+            'match'     => 'is_string',
+            'update'    => 'text',
+            'show'      => 'col=5',
+        ),
+
         'col_content'       => array
         (
             'type'      => 'int-11',