|
@@ -86,6 +86,19 @@ return array
|
|
|
'match' => 'option',
|
|
|
'list' => '{source_table} == 1 ? Dever::load("content/news-one#name", {source_id}) : Dever::load("content/course-one#name", {source_id})',
|
|
|
),
|
|
|
+
|
|
|
+ 'num_up' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => '赞数',
|
|
|
+ 'default' => '0',
|
|
|
+ 'desc' => '请填写赞数',
|
|
|
+ 'match' => 'option',
|
|
|
+
|
|
|
+ 'list' => true,
|
|
|
+
|
|
|
+
|
|
|
+ ),
|
|
|
|
|
|
'content' => array
|
|
|
(
|
|
@@ -145,5 +158,33 @@ return array
|
|
|
'page' => array(10, 'list'),
|
|
|
'col' => '*',
|
|
|
),
|
|
|
+
|
|
|
+
|
|
|
+ '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', '-='),
|
|
|
+ ),
|
|
|
+ ),
|
|
|
),
|
|
|
);
|