|
@@ -449,6 +449,7 @@ class Journal extends Core
|
|
|
$this->data['info']['vip'] = 2;
|
|
|
$vip = Dever::load('vip/lib/member')->get($uid, $info['cate_id']);
|
|
|
if ($vip > 0) {
|
|
|
+ $this->data['info']['subscribe'] = 1;
|
|
|
$this->data['info']['vip'] = 1;
|
|
|
$this->setButton('read', 1);
|
|
|
}
|
|
@@ -688,16 +689,19 @@ class Journal extends Core
|
|
|
|
|
|
$vip = Dever::load('vip/lib/member')->get($this->data['uid'], $this->data['info']['cate_id']);
|
|
|
|
|
|
-
|
|
|
- $user = Dever::db('passport/user')->one($this->data['uid']);
|
|
|
- if ($user && $user['mobile']) {
|
|
|
- $mobileWhere['mobile'] = $user['mobile'];
|
|
|
- $mobileWhere['product_id'] = $id;
|
|
|
- $mobile = Dever::db('journal/mobile')->one($mobileWhere);
|
|
|
- if ($mobile) {
|
|
|
- $vip = 1;
|
|
|
+ if ($vip <= 0) {
|
|
|
+
|
|
|
+ $user = Dever::db('passport/user')->one($this->data['uid']);
|
|
|
+ if ($user && $user['mobile']) {
|
|
|
+ $mobileWhere['mobile'] = $user['mobile'];
|
|
|
+ $mobileWhere['product_id'] = $id;
|
|
|
+ $mobile = Dever::db('journal/mobile')->one($mobileWhere);
|
|
|
+ if ($mobile) {
|
|
|
+ $vip = 1;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
|
|
|
if ($vip > 0) {
|
|
|
$subscribe = 1;
|