find(); // $userTokenCache->deleteUserInfo($userSession->token); $params = (new LoginAccountValidate())->post()->goCheck(); $result = TeamLoginLogic::login($params); if (false === $result) { return $this->fail(TeamLoginLogic::getError()); } return $this->data($result); } /** * @notes 重置密码 * @return \think\response\Json * @author 胥聪 * @date 2025/12/16 14:30 */ public function resetPassword() { $params = (new PasswordValidate())->post()->goCheck('resetPassword'); $result = TeamLoginLogic::resetPassword($params); if (true === $result) { return $this->success('操作成功', [], 1, 1); } return $this->fail(TeamLoginLogic::getError()); } /** * @notes 退出登录 * @return \think\response\Json * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DbException * @throws \think\db\exception\ModelNotFoundException * @author 段誉 * @date 2022/9/16 10:42 */ public function logout() { TeamLoginLogic::logout($this->userInfo); return $this->success(); } }