|
@@ -432,27 +432,31 @@ class Journal_v1 extends Core
|
|
|
}
|
|
|
|
|
|
# 会员随便看
|
|
|
- $info['vip'] = 2;
|
|
|
- $vip = Dever::load('vip/lib/member')->get($this->data['uid'], $info['cate_id']);
|
|
|
- if ($vip > 0) {
|
|
|
- $info['subscribe'] = 1;
|
|
|
- $info['vip'] = 1;
|
|
|
- $this->setButton('read', 1);
|
|
|
- }
|
|
|
-
|
|
|
- # 是否在外站订阅过 防止缓存失效,这里先注释
|
|
|
- /*
|
|
|
- $user = Dever::db('passport/user')->one($this->data['uid']);
|
|
|
- if ($user && $user['mobile']) {
|
|
|
- $mobileWhere['mobile'] = $user['mobile'];
|
|
|
- $mobileWhere['product_id'] = $info['id'];
|
|
|
- $mobile = Dever::db('journal/mobile')->one($mobileWhere);
|
|
|
- if ($mobile) {
|
|
|
+ if ($this->data['uid'] > 0) {
|
|
|
+ $info['vip'] = 2;
|
|
|
+ $vip = Dever::load('vip/lib/member')->get($this->data['uid'], $info['cate_id']);
|
|
|
+ if ($vip > 0) {
|
|
|
$info['subscribe'] = 1;
|
|
|
+ $info['vip'] = 1;
|
|
|
$this->setButton('read', 1);
|
|
|
}
|
|
|
+ # 是否在外站订阅过 防止缓存失效,这里先注释
|
|
|
+ /*
|
|
|
+ $user = Dever::db('passport/user')->one($this->data['uid']);
|
|
|
+ if ($user && $user['mobile']) {
|
|
|
+ $mobileWhere['mobile'] = $user['mobile'];
|
|
|
+ $mobileWhere['product_id'] = $info['id'];
|
|
|
+ $mobile = Dever::db('journal/mobile')->one($mobileWhere);
|
|
|
+ if ($mobile) {
|
|
|
+ $info['subscribe'] = 1;
|
|
|
+ $this->setButton('read', 1);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ */
|
|
|
}
|
|
|
- */
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
if ($this->source_type == 'ios' && $info['id'] == 26) {
|
|
|
$this->setButton('share', -1);
|