Browse Source

完善查询个人信息接口

15954078560 3 years ago
parent
commit
518665b5cf
1 changed files with 2 additions and 0 deletions
  1. 2 0
      application/api/controller/User.php

+ 2 - 0
application/api/controller/User.php

@@ -1034,6 +1034,8 @@ class User extends Api
             $userInfo['is_active'] = 0; //不活跃
         }
 
+        $userInfo['avatar_auth'] = $userInfo['avatar_auth'] ? $userInfo['avatar_auth'] : $userInfo['avatar'];
+
 //            $userInfo = $userInfo->toArray();
 //            $redis->hMSet('userInfo_'.$user_id,encodeArray($userInfo));
 //        }