设置后台单点登录

进入config/my.php,设置 

'multiple_login' => false,    //true 允许多个用户同时登录,false 只允许一个用户在线