From 03380eba66f9b577ac2510550137991071d70ae0 Mon Sep 17 00:00:00 2001 From: liugang Date: Thu, 7 Dec 2023 14:44:09 +0800 Subject: [PATCH] * userModel: refactor the identifyByCookie method. --- module/user/model.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/user/model.php b/module/user/model.php index f4e7f1d047..772ec49382 100644 --- a/module/user/model.php +++ b/module/user/model.php @@ -965,12 +965,13 @@ class userModel extends model } /** + * 根据 Cookie 验证用户。 * Identify user by cookie. * * @access public * @return bool */ - public function identifyByCookie() + public function identifyByCookie(): bool { $account = $this->cookie->za; $authHash = $this->cookie->zp;