合并用户登录界面
This commit is contained in:
1 parent
53615988c8
commit
fd7a567f1c
27 files changed
+256
-778
No files matched your search
@@ -20,30 +20,30 @@ class OnLine
|
||||
}
|
||||
|
||||
|
||||
// 获取用户信息
|
||||
public function getLoginInfo($yu)
|
||||
{
|
||||
$username = '';
|
||||
$password = '';
|
||||
// 尝试从session中获取用户名和密码
|
||||
$username = session('?'.$yu.'.username')
|
||||
? $username = session($yu.'.username') : $username = '';
|
||||
$password = session('?'.$yu.'.password')
|
||||
? $password = session($yu.'.password') : $password = '';
|
||||
// 尝试从cookie中获取用户名和密码
|
||||
if (strlen($username) < 1 )
|
||||
{
|
||||
$username = cookie('?username')
|
||||
? $username = cookie('username') : $username = '';
|
||||
$password = cookie('?password')
|
||||
? $password = cookie('password') : $password = '';
|
||||
}
|
||||
// // 获取用户信息
|
||||
// public function getLoginInfo($yu)
|
||||
// {
|
||||
// $username = '';
|
||||
// $password = '';
|
||||
// // 尝试从session中获取用户名和密码
|
||||
// $username = session('?'.$yu.'.username')
|
||||
// ? $username = session($yu.'.username') : $username = '';
|
||||
// $password = session('?'.$yu.'.password')
|
||||
// ? $password = session($yu.'.password') : $password = '';
|
||||
// // 尝试从cookie中获取用户名和密码
|
||||
// if (strlen($username) < 1 )
|
||||
// {
|
||||
// $username = cookie('?username')
|
||||
// ? $username = cookie('username') : $username = '';
|
||||
// $password = cookie('?password')
|
||||
// ? $password = cookie('password') : $password = '';
|
||||
// }
|
||||
|
||||
$userInfo = [
|
||||
'username' => $username
|
||||
,'password' => $password
|
||||
];
|
||||
// $userInfo = [
|
||||
// 'username' => $username
|
||||
// ,'password' => $password
|
||||
// ];
|
||||
|
||||
return $userInfo;
|
||||
}
|
||||
// return $userInfo;
|
||||
// }
|
||||
}
|
||||
Reference in new issue
Block a user