@@ -605,6 +605,18 @@ $config = array
'type' => 'one',
'col' => $col,
),
+
+ 'getNew' => array
+ (
+ # 匹配的正则或函数 选填项
+ 'option' => array
+ 'state' => 1,
+ ),
+ 'type' => 'one',
+ 'order' => array('ssdate' => 'desc'),
+ 'col' => $col . ',pdate as ssdate',
);
@@ -62,7 +62,7 @@ class Journal extends Core
$this->data['push'] = Dever::db('journal/info')->getOne($cate['journal_id']);
} else {
# 获取最新的小刊
- $this->data['push'] = Dever::db('journal/info')->getNew(array(''));
+ $this->data['push'] = Dever::db('journal/info')->getNew(array('time' => time()));
}