dever 6 years ago
parent
commit
923ed5cbd2
1 changed files with 12 additions and 0 deletions
  1. 12 0
      main/src/Journal.php

+ 12 - 0
main/src/Journal.php

@@ -687,6 +687,18 @@ 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) {
             $subscribe = 1;
         } else {