|
@@ -135,7 +135,11 @@ class Journal_v1 extends Core
|
|
$subscribe = Dever::load('act/lib/subscribe')->get($info['id'], $uid, 4);
|
|
$subscribe = Dever::load('act/lib/subscribe')->get($info['id'], $uid, 4);
|
|
$this->data['info']['subscribe'] = 2;
|
|
$this->data['info']['subscribe'] = 2;
|
|
|
|
|
|
|
|
+ # 查看是否有排行榜
|
|
|
|
+ $this->data['info']['active'] = $info['top'];
|
|
|
|
+
|
|
# 查看是否有活动
|
|
# 查看是否有活动
|
|
|
|
+ /*
|
|
$active = Dever::db('journal/active')->one(array('id' => $info['id']));
|
|
$active = Dever::db('journal/active')->one(array('id' => $info['id']));
|
|
$this->data['info']['active'] = 2;
|
|
$this->data['info']['active'] = 2;
|
|
if ($active && $active['status'] == 1) {
|
|
if ($active && $active['status'] == 1) {
|
|
@@ -146,6 +150,7 @@ class Journal_v1 extends Core
|
|
if ($active && $time >= $active['start'] && $time < $active['end']) {
|
|
if ($active && $time >= $active['start'] && $time < $active['end']) {
|
|
$this->data['info']['active'] = 1;
|
|
$this->data['info']['active'] = 1;
|
|
}
|
|
}
|
|
|
|
+ */
|
|
|
|
|
|
if ($this->data['info']['active'] == 1) {
|
|
if ($this->data['info']['active'] == 1) {
|
|
$this->setButton('share', 1);
|
|
$this->setButton('share', 1);
|