rabin 7 лет назад
Родитель
Сommit
6c9750fb12

+ 1 - 0
comment/database/review.php

@@ -4,6 +4,7 @@ $table = array
 (
 	1 => '资讯',
 	2 => '课程',
+	3 => '会议',
 );
 
 $info = function()

+ 1 - 0
comment/database/share.php

@@ -4,6 +4,7 @@ $table = array
 (
 	1 => '资讯',
 	2 => '课程',
+	3 => '会议',
 );
 
 $info = function()

+ 1 - 0
comment/database/share_reflux.php

@@ -4,6 +4,7 @@ $table = array
 (
 	1 => '资讯',
 	2 => '课程',
+	3 => '会议',
 );
 
 $info = function()

+ 1 - 0
comment/database/vote.php

@@ -4,6 +4,7 @@ $table = array
 (
 	1 => '资讯',
 	2 => '课程',
+	3 => '会议',
 );
 
 $info = function()

+ 1 - 1
content/database/course.php

@@ -263,7 +263,7 @@ return array
 			'type' => 'all',
 			'order' => array('reorder' => 'desc', 'id' => 'desc'),
 			'page' => array(10, 'list'),
-			'col' => 'id, name, pic, top, info_id, author_id, content, (num_view+num_add_view) as num_view,num_review,num_up, cdate',
+			'col' => 'id, name, pic, top, info_id, author_id, content, (num_view+num_add_view) as num_view,num_review,num_up,num_watch, cdate',
 		),
 
 		

+ 45 - 1
content/database/meeting.php

@@ -175,6 +175,50 @@ return array
 			'list'		=> true,
 			'edit'		=> true,
 		),
+
+		'num_add_view'		=> array
+		(
+			'type' 		=> 'int-11',
+			'name' 		=> '手动增加浏览量pv',
+			'default' 	=> '0',
+			'desc' 		=> '请填写手动增加浏览量pv',
+			'match' 	=> 'option',
+			'update'	=> 'text',
+		),
+		
+		'num_up'		=> array
+		(
+			'type' 		=> 'int-11',
+			'name' 		=> '赞数',
+			'default' 	=> '0',
+			'desc' 		=> '请填写赞数',
+			'match' 	=> 'option',
+			//'search'	=> 'order',
+			'list'		=> '"赞数:{num_up}<br />浏览量:{num_view}+{num_add_view}<br />回复数:{num_review}<br />"',
+			'list_name'	=> '统计数字',
+		),
+		
+		'num_view'		=> array
+		(
+			'type' 		=> 'int-11',
+			'name' 		=> '浏览量pv',
+			'default' 	=> '0',
+			'desc' 		=> '请填写浏览量pv',
+			'match' 	=> 'option',
+			'search'	=> 'order',
+			//'list'		=> '{num_view}+{num_add_view}',
+		),
+		
+		'num_review'		=> array
+		(
+			'type' 		=> 'int-11',
+			'name' 		=> '回复数',
+			'default' 	=> '0',
+			'desc' 		=> '请填写回复数',
+			'search'	=> 'order',
+			'match' 	=> 'option',
+			//'list'		=> true,
+		),
 		
 		'content'		=> array
 		(
@@ -244,7 +288,7 @@ return array
 			'type' => 'all',
 			'order' => array('reorder' => 'desc', 'id' => 'desc'),
 			'page' => array(10, 'list'),
-			'col' => '*',
+			'col' => '*,(num_view+num_add_view) as num_view',
 		),
 
 		'getOld' => array

+ 1 - 0
content/lib/Base.php

@@ -145,6 +145,7 @@ class Base
         (
             1 => 'news',
             2 => 'course',
+            3 => 'meeting',
         );
         return $config[$type];
     }

+ 9 - 0
content/v1/Meeting.php

@@ -47,6 +47,9 @@ class Meeting extends Base
      * @apiSuccess {String}   cate.meeting.sdate  会议开始时间
      * @apiSuccess {String}   cate.meeting.edate  会议结束时间
      * @apiSuccess {String}   cate.meeting.content  会议内容
+     * @apiSuccess {String}   cate.meeting.num_view  阅读数
+     * @apiSuccess {String}   cate.meeting.num_review  评论数
+     * @apiSuccess {String}   cate.meeting.num_up  赞数
      * @apiSuccess {String}   cate.meeting.cdate  时间
      *
      * @apiSuccessExample 操作成功
@@ -124,6 +127,9 @@ class Meeting extends Base
      * @apiSuccess {String}   meeting.sdate  会议开始时间
      * @apiSuccess {String}   meeting.edate  会议结束时间
      * @apiSuccess {String}   meeting.content  会议内容
+     * @apiSuccess {String}   meeting.num_view  阅读数
+     * @apiSuccess {String}   meeting.num_review  评论数
+     * @apiSuccess {String}   meeting.num_up  赞数
      * @apiSuccess {String}   meeting.cdate  时间
      *
      * @apiSuccessExample 操作成功
@@ -181,6 +187,9 @@ class Meeting extends Base
      * @apiSuccess {String}   meeting.sdate  会议开始时间
      * @apiSuccess {String}   meeting.edate  会议结束时间
      * @apiSuccess {String}   meeting.content  会议内容
+     * @apiSuccess {String}   meeting.num_view  阅读数
+     * @apiSuccess {String}   meeting.num_review  评论数
+     * @apiSuccess {String}   meeting.num_up  赞数
      * @apiSuccess {String}   meeting.cdate  时间
      *
      * @apiSuccessExample 操作成功

+ 2 - 2
content/v1/Review.php

@@ -17,7 +17,7 @@ class Review
      * @apiParam {Number} appid 小程序id
      * @apiParam {Number} uid 用户id
      * @apiParam {String} session 验证用户的session
-     * @apiParam {Number} type 评论的类型:1为资讯2为课程
+     * @apiParam {Number} type 评论的类型:1为资讯2为课程3为会议
      * @apiParam {Number} id 评论的类型id
      *
      * @apiSuccess {Object[]} info 小程序基本信息
@@ -60,7 +60,7 @@ class Review
      * @apiParam {Number} appid 小程序id
      * @apiParam {Number} uid 用户id
      * @apiParam {String} session 验证用户的session
-     * @apiParam {Number} type 评论的类型:1为资讯2为课程
+     * @apiParam {Number} type 评论的类型:1为资讯2为课程3为会议
      * @apiParam {Number} id 评论的类型id
      * @apiParam {String} content 用户提交的评论内容
      *

+ 1 - 1
content/v1/Share.php

@@ -17,7 +17,7 @@ class Share
      * @apiParam {Number} appid 小程序id
      * @apiParam {Number} uid 用户id
      * @apiParam {String} session 验证用户的session
-     * @apiParam {Number} type 分享的类型:1为资讯2为课程
+     * @apiParam {Number} type 评论的类型:1为资讯2为课程3为会议
      * @apiParam {Number} id 分享的类型id
      * @apiParam {String} content 分享的内容
      *

+ 1 - 1
content/v1/Vote.php

@@ -17,7 +17,7 @@ class Vote
      * @apiParam {Number} appid 小程序id
      * @apiParam {Number} uid 用户id
      * @apiParam {String} session 验证用户的session
-     * @apiParam {Number} type 点赞的类型:1为资讯2为课程
+     * @apiParam {Number} type 评论的类型:1为资讯2为课程3为会议
      * @apiParam {Number} id 点赞的类型id
      *
      * @apiSuccess {Number}   id  点赞id