/**
* 登录处置
* @throws \think\Exception
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
* @throws \think\exception\PDOException
*/
public function LoginIn()
{
$params = \request()->param();
$rule = [
'username' => 'require',
'password' => 'require',
];
$msg = [
'username.require' => '用户名不能为空',
'password.require' => '密码不能为空',
];
$validate = new Validate($rule, $msg);
$result = $validate->check($params);
if (!$result) {
ApiResponse::error($validate->getError())