dever 6 سال پیش
والد
کامیت
6577b9bb97
1فایلهای تغییر یافته به همراه12 افزوده شده و 123 حذف شده
  1. 12 123
      content/database/article.php

+ 12 - 123
content/database/article.php

@@ -44,7 +44,7 @@ $wechat = array
 );
 
 # 常用的col
-$col = 'id,cate_id,name,pic_cover,pic_cover_169,pdate,num_add_view+num_view as num_view,num_up+num_add_up as num_up,num_comment,share_yes,share_title,share_pic,share_content,function,content,author_id';
+$col = 'id,cate_id,name,pic_cover,pdate,num_add_view+num_view as num_view,num_up+num_add_up as num_up,num_comment,share_yes,share_title,share_pic,share_content,function,content,author_id';
 
 return array
 (
@@ -93,50 +93,29 @@ return array
 			'search'	=> 'select',
 		),
 
-		'author_id'		=> array
+		'uid'		=> array
 		(
 			'type' 		=> 'int-11',
-			'name' 		=> '作者',
+			'name' 		=> '用户ID',
 			'default' 	=> '1',
-			'desc' 		=> '作者',
+			'desc' 		=> '用户ID',
 			'match' 	=> 'is_numeric',
-			'update'	=> 'select',
+			//'update'	=> 'text',
 			//'option'	=> $author,
 			'search'	=> 'select',
-			'update_search'	=> 'content/lib/author.search',
 		),
 
-		'wechat'		=> array
-		(
-			'type' 		=> 'int-11',
-			'name' 		=> '是否公众号文章',
-			'default' 	=> '1',
-			'desc' 		=> '是否公众号文章',
-			'match' 	=> 'is_numeric',
-			//'update'	=> 'select',
-			'option'	=> $wechat,
-			'search'	=> 'select',
-		),
-
-		'wechat_data_id'		=> array
+		'author_id'		=> array
 		(
 			'type' 		=> 'int-11',
-			'name' 		=> '微信数据id',
+			'name' 		=> '作者',
 			'default' 	=> '0',
-			'desc' 		=> '微信数据id',
-			'match' 	=> 'is_numeric',
-		),
-
-		'tag'		=> array
-		(
-			'type' 		=> 'text-255',
-			'name' 		=> '标签',
-			'default' 	=> '',
-			'desc' 		=> '标签',
+			'desc' 		=> '作者',
 			'match' 	=> 'is_numeric',
-			'update'	=> 'selects',
-			//'search'	=> 'fulltext',
-			'update_search'	=> 'tag/lib/core.search',
+			'update'	=> 'select',
+			//'option'	=> $author,
+			'search'	=> 'select',
+			'update_search'	=> 'content/lib/author.search',
 		),
 
   		'pic_cover'		=> array
@@ -155,22 +134,6 @@ return array
 			//'large' 	=> true,
 		),
 
-		'pic_cover_169'		=> array
-		(
-			'type' 		=> 'varchar-150',
-			'name' 		=> '16:9封面图-图片尺寸750*422px或等比尺寸,上传大小不能超过2M,支持JPG、PNG、GIF格式,建议上传JPG格式',
-			'default' 	=> '',
-			'desc' 		=> '封面图',
-			'match' 	=> 'is_string',
-			'update'	=> 'image',
-			'key' 		=> '1',
-			'place'		=> '150',
-			//直接上传到云端
-			//'upload'	=> 'qiniu',
-			//上传大数据
-			//'large' 	=> true,
-		),
-
 		'num_add_view'		=> array
 		(
 			'type' 		=> 'int-11',
@@ -234,24 +197,6 @@ return array
 			'match' 	=> 'is_numeric',
 		),
 
-		'admin_founder'		=> array
-		(
-			'type' 		=> 'int-11',
-			'name' 		=> '创建人',
-			'default' 	=> '1',
-			'desc' 		=> '创建人',
-			'match' 	=> 'is_numeric',
-		),
-
-		'admin_editor'		=> array
-		(
-			'type' 		=> 'int-11',
-			'name' 		=> '操作人',
-			'default' 	=> '1',
-			'desc' 		=> '操作人',
-			'match' 	=> 'is_numeric',
-		),
-
 		'pdate'		=> array
 		(
 			'type' 		=> 'int-11',
@@ -266,17 +211,6 @@ return array
 			'auth'		=> '"{pdate}" > 0',
 		),
 
-		'share'		=> array
-		(
-			'type' 		=> 'text-255',
-			'name' 		=> '分享海报-选择海报库中的海报',
-			'default' 	=> '',
-			'desc' 		=> '分享海报',
-			'match' 	=> 'option',
-			//'update'	=> 'checkbox',
-			'option'	=> $share,
-		),
-
 		'reorder'		=> array
 		(
 			'type' 		=> 'int-11',
@@ -368,51 +302,6 @@ return array
 			'match' 	=> 'is_string',
 			'update'	=> 'editor',
 			'key'		=> '1',
-			//'media'		=> '5',//下面的音视频已经做到了
-			//直接上传到云端
-			//'upload'	=> 'qiniu',
-			//上传大数据
-			//'large' 	=> true,
-			//自定义编辑器右侧按钮
-			'editor'	=> array
-			(
-				'name' => '选择插入模块',
-				'button' => array
-				(
-					array
-					(
-						# 名称
-						'name' => '图片',
-						# 资源库id
-						'key' => 1,
-						# 类型
-						'type' => 'image',
-					),
-					array
-					(
-						'name' => '音频',
-						'key' => 5,
-						'type' => 'media',
-					),
-					array
-					(
-						'name' => '视频',
-						'key' => 'video/lib/core.vod',
-					),
-					array
-					(
-						'name' => '直播',
-						'key' => 'video/lib/core.live',
-					),
-
-					array
-					(
-						'name' => '小程序',
-						'key' => 'content/lib/applet.update',
-						'type' => 'update',
-					),
-				),
-			),
 		),
 
 		'audit'		=> array