|
@@ -294,6 +294,14 @@ class Journal extends Core
|
|
$this->setButton('code', 1, '兑换码阅读');
|
|
$this->setButton('code', 1, '兑换码阅读');
|
|
//$this->setButton('share', -1);
|
|
//$this->setButton('share', -1);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ # 会员随便看
|
|
|
|
+ $this->data['info']['vip'] = 2;
|
|
|
|
+ $vip = Dever::load('vip/lib/member')->get($uid, $info['cate_id']);
|
|
|
|
+ if ($vip > 0) {
|
|
|
|
+ $this->data['info']['vip'] = 1;
|
|
|
|
+ $this->setButton('read', 1, '开始阅读');
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
# 小刊查看详情 新版本
|
|
# 小刊查看详情 新版本
|
|
@@ -381,14 +389,6 @@ 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']['vip'] = 1;
|
|
|
|
- $this->setButton('read', 1);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
$applet_type = Dever::input('applet_type');
|
|
$applet_type = Dever::input('applet_type');
|
|
if ($applet_type == 2 && isset($this->data['config']['ios_pay']) && $this->data['config']['ios_pay'] == 1 && $info['buy'] == 1) {
|
|
if ($applet_type == 2 && isset($this->data['config']['ios_pay']) && $this->data['config']['ios_pay'] == 1 && $info['buy'] == 1) {
|
|
# 关闭支付
|
|
# 关闭支付
|
|
@@ -403,6 +403,14 @@ class Journal extends Core
|
|
$this->setButton('code', 1);
|
|
$this->setButton('code', 1);
|
|
//$this->setButton('share', -1);
|
|
//$this->setButton('share', -1);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ # 会员随便看
|
|
|
|
+ $this->data['info']['vip'] = 2;
|
|
|
|
+ $vip = Dever::load('vip/lib/member')->get($uid, $info['cate_id']);
|
|
|
|
+ if ($vip > 0) {
|
|
|
|
+ $this->data['info']['vip'] = 1;
|
|
|
|
+ $this->setButton('read', 1);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
private function setButton($key = false, $status = false, $name = false)
|
|
private function setButton($key = false, $status = false, $name = false)
|