|
@@ -360,8 +360,12 @@ class Journal_v1 extends Core
|
|
|
$this->data['info'] = $this->info($this->data['info'], false);
|
|
|
if ($this->data['info']['ytype'] == 2) {
|
|
|
$subscribe = 3;
|
|
|
- } elseif ($this->data['uid']) {
|
|
|
- $subscribe = Dever::load('act/lib/subscribe')->get($id, $this->data['uid'], 4);
|
|
|
+ } elseif ($this->data['uid'] > 0) {
|
|
|
+ $cache = false;
|
|
|
+ if ($this->data['info']['hot'] == 1) {
|
|
|
+ $cache = true;
|
|
|
+ }
|
|
|
+ $subscribe = Dever::load('act/lib/subscribe')->get($id, $this->data['uid'], 4, $cache);
|
|
|
}
|
|
|
|
|
|
return array('subscribe' => $subscribe);
|
|
@@ -752,8 +756,7 @@ class Journal_v1 extends Core
|
|
|
$status = true;
|
|
|
}
|
|
|
|
|
|
- $where['id'] = $id;
|
|
|
- $this->data['info'] = Dever::db('journal/info')->one($where);
|
|
|
+ $this->data['info'] = Dever::load('act/order')->getJournal($id);
|
|
|
|
|
|
if (!$this->data['info']) {
|
|
|
Dever::alert('小刊已下架');
|