Explorar o código

在线用户列表,增加用户财富等级,魅力等级

lizhen_gitee hai 1 ano
pai
achega
ae43f7166f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      application/api/controller/Party.php

+ 1 - 1
application/api/controller/Party.php

@@ -591,7 +591,7 @@ class Party extends Common
         if($res) $user_ids = array_values($res);
         // 获取用户列表信息
         if($user_ids){
-            $userList = Db::name('user')->field("user.id,user.avatar,user.nickname,user.level,user.gender,user.charm_level,user.wealth_level,charm.image as charm_image,charm.color as charm_color,wealth.image as wealth_image,wealth.color as wealth_color")
+            $userList = Db::name('user')->alias('user')->field("user.id,user.avatar,user.nickname,user.level,user.gender,user.charm_level,user.wealth_level,charm.image as charm_image,charm.color as charm_color,wealth.image as wealth_image,wealth.color as wealth_color")
                 ->join('user_config_charm charm','user.charm_level = charm.level','LEFT')
                 ->join('user_config_wealth wealth','user.wealth_level = wealth.level','LEFT')
                 ->where(["user.id"=>["in",$user_ids],'user.is_stealth'=>0])