From ec5ae1352002d0eaa88eac246565c0e4e7922fdd Mon Sep 17 00:00:00 2001 From: leiyong Date: Wed, 23 Aug 2023 06:24:53 +0000 Subject: [PATCH] * Get account from cookie. --- framework/base/router.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/framework/base/router.class.php b/framework/base/router.class.php index d970cd7c96..e56eef1334 100644 --- a/framework/base/router.class.php +++ b/framework/base/router.class.php @@ -770,6 +770,7 @@ class baseRouter $account = isset($_SESSION['user']) ? $_SESSION['user']->account : ''; if(empty($account) and isset($_POST['account'])) $account = $_POST['account']; if(empty($account) and isset($_GET['account'])) $account = $_GET['account']; + if(empty($account)) $account = $this->cookie->za; $vision = ''; if($this->config->installed and validater::checkAccount($account))