post()->goCheck(); $result = (new LoginLogic())->login($params); if (false === $result) { return $this->fail(LoginLogic::getError()); } return $this->data($result); } /** * @notes 退出登录 * @return \think\response\Json * @author 段誉 * @date 2022/3/9 18:54 */ public function logout() { (new LoginLogic())->logout($this->kefuInfo); return $this->success(); } }