dever il y a 6 ans
Parent
commit
3cff6e2fd1
1 fichiers modifiés avec 21 ajouts et 17 suppressions
  1. 21 17
      main/src/Journal_v1.php

+ 21 - 17
main/src/Journal_v1.php

@@ -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);