|
@@ -397,6 +397,19 @@ class Journal extends Core
|
|
|
}
|
|
|
|
|
|
$applet_type = Dever::input('applet_type');
|
|
|
+
|
|
|
+ $this->data['info']['vip_state'] = 2;
|
|
|
+ $version_code = Dever::input('version_code');
|
|
|
+ if ($version_code) {
|
|
|
+ $source_type = Dever::input('source_type');
|
|
|
+ $version_where['source_type'] = $source_type;
|
|
|
+ $version_where['name'] = $version_code;
|
|
|
+ $version = Dever::db('main/version')->getOne($version_where);
|
|
|
+ if ($version && $version['vip'] > 0) {
|
|
|
+ $this->data['info']['vip_state'] = $version['vip'];
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
if ($applet_type == 2 && isset($this->data['config']['ios_pay']) && $this->data['config']['ios_pay'] == 1 && $info['buy'] == 1) {
|
|
|
# 关闭支付
|
|
|
if ($subscribe == 1) {
|
|
@@ -407,7 +420,7 @@ class Journal extends Core
|
|
|
}
|
|
|
|
|
|
$this->setButton('buy', -1);
|
|
|
- $this->setButton('code', -1);
|
|
|
+ $this->setButton('code', 1);
|
|
|
//$this->setButton('share', -1);
|
|
|
}
|
|
|
|