Browse Source

用户资料家族

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

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

@@ -503,8 +503,14 @@ class Auth
             $userinfo['can_egggift'] = 1;
         }
 
-        //
+        //拥有的家族
+        $userinfo['guild_id'] = 0;
+        $guild_id = Db::name('guild')->where('user_id',$this->_user->id)->where('status',1)->value('id');
+        if($guild_id){
+            $userinfo['guild_id'] = $guild_id;
+        }
 
+        //
         return $userinfo;
     }