find(); unset( $info['username'], $info['password'], $info['salt'], $info['successions'], $info['maxsuccessions'], $info['prevtime'], $info['loginip'], $info['loginfailure'], $info['joinip'], $info['jointime'], $info['updatetime'], ); return $info; } public static function getInfoByUserNo($user_no) { $info = self::where('user_no', $user_no)->find(); unset( $info['username'], $info['password'], $info['salt'], $info['successions'], $info['maxsuccessions'], $info['prevtime'], $info['loginip'], $info['loginfailure'], $info['joinip'], $info['jointime'], $info['updatetime'], ); return $info; } public static function getInfoByChatId($chat_id) { $info = self::where('chat_id', $chat_id)->find(); unset( $info['username'], $info['password'], $info['salt'], $info['successions'], $info['maxsuccessions'], $info['prevtime'], $info['loginip'], $info['loginfailure'], $info['joinip'], $info['jointime'], $info['updatetime'], ); return $info; } }