|
@@ -332,5 +332,60 @@ return array
|
|
|
'order' => array('reorder' => 'desc', 'id' => 'desc'),
|
|
|
'col' => '*',
|
|
|
),
|
|
|
+ # 更新浏览量
|
|
|
+ 'addView' => array
|
|
|
+ (
|
|
|
+ 'type' => 'update',
|
|
|
+ 'where' => array
|
|
|
+ (
|
|
|
+ 'id' => 'yes',
|
|
|
+ ),
|
|
|
+ 'set' => array
|
|
|
+ (
|
|
|
+ 'num_view' => array('1', '+='),
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+
|
|
|
+ # 更新回复数
|
|
|
+ 'addReview' => array
|
|
|
+ (
|
|
|
+ 'type' => 'update',
|
|
|
+ 'where' => array
|
|
|
+ (
|
|
|
+ 'id' => 'yes',
|
|
|
+ ),
|
|
|
+ 'set' => array
|
|
|
+ (
|
|
|
+ 'num_review' => array('1', '+='),
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+
|
|
|
+ # 更新点赞数
|
|
|
+ 'addUp' => array
|
|
|
+ (
|
|
|
+ 'type' => 'update',
|
|
|
+ 'where' => array
|
|
|
+ (
|
|
|
+ 'id' => 'yes',
|
|
|
+ ),
|
|
|
+ 'set' => array
|
|
|
+ (
|
|
|
+ 'num_up' => array('1', '+='),
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+
|
|
|
+ # 更新点赞数
|
|
|
+ 'desUp' => array
|
|
|
+ (
|
|
|
+ 'type' => 'update',
|
|
|
+ 'where' => array
|
|
|
+ (
|
|
|
+ 'id' => 'yes',
|
|
|
+ ),
|
|
|
+ 'set' => array
|
|
|
+ (
|
|
|
+ 'num_up' => array('1', '-='),
|
|
|
+ ),
|
|
|
+ ),
|
|
|
),
|
|
|
);
|