request->post(); (new LoginValidate())->goCheck(); $result = LoginLogic::accountLogin($post); return JsonServer::success('登录成功', $result); } /** * @notes 退出登录 * @return \think\response\Json * @author 段誉 * @date 2021/11/9 15:49 */ public function logout() { LoginLogic::logout($this->admin_id, $this->client); return JsonServer::success(); } }