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

+ 9 - 0
main/src/Journal.php

@@ -550,6 +550,15 @@ class Journal extends Core
                 $this->data['my'] = $my[0];
                 $this->data['my']['pai'] = '50+';
             }
+        } else {
+            $user = Dever::load('passport/api')->info($this->data['uid']);
+            $this->data['my'] = array();
+            $this->data['my']['uid'] = $this->data['uid'];
+            $this->data['my']['username'] = $user['username'];
+            $this->data['my']['avatar'] = $user['avatar'];
+            $this->data['my']['mobile'] = $user['mobile'];
+            $this->data['my']['score'] = '0';
+            $this->data['my']['pai'] = '未上榜';
         }
 
         # 获取活动说明