getToken()) { header('Location: ../index.php?msg=无效的 token,请重新登录。'); } } else { header('Location: ../index.php?msg=非法访问,请先登录。'); }