dever 6 gadi atpakaļ
vecāks
revīzija
a80b6ee749
1 mainītis faili ar 9 papildinājumiem un 0 dzēšanām
  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'] = '未上榜';
         }
 
         # 获取活动说明