dever 6 år sedan
förälder
incheckning
84fbb6d043
1 ändrade filer med 16 tillägg och 8 borttagningar
  1. 16 8
      main/src/Journal.php

+ 16 - 8
main/src/Journal.php

@@ -294,6 +294,14 @@ class Journal extends Core
             $this->setButton('code', 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');
         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('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)