Browse Source

我的信息接口调整

zhangxiaobin 1 year ago
parent
commit
7cd7081694
1 changed files with 7 additions and 1 deletions
  1. 7 1
      application/common/library/Auth.php

+ 7 - 1
application/common/library/Auth.php

@@ -521,7 +521,13 @@ class Auth
         $userinfo["userlight"] = $userlight;
         $userinfo["userpop"] = $userpop;
         $userinfo["userandroidpop"] = $userandroidpop;
-
+        $userInfoA = model('User')->getAppendData($userinfo);
+        $userInfo['age_text'] = $userInfoA['age_text'];
+        $userInfo['constellation_text'] = $userInfoA['constellation_text'];
+        $userInfo['province_text'] = $userInfoA['province_text'];
+        $userInfo['city_text'] = $userInfoA['city_text'];
+        $userInfo['friends_num'] = $userInfoA['friends_num'];
+        $userInfo['look_num'] = $userInfoA['look_num'];
         // 是否设置密码
         $userinfo['is_setpwd'] = $data['password'] ? 1 : 0;
         $field = 'id,age_id,constellation_id,province_id,city_id,desc';