dever 6 年之前
父节点
当前提交
a80b6ee749
共有 1 个文件被更改,包括 9 次插入0 次删除
  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'] = $my[0];
                 $this->data['my']['pai'] = '50+';
                 $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'] = '未上榜';
         }
         }
 
 
         # 获取活动说明
         # 获取活动说明