From 436e95380195db628e1d6754879db3d2922a293a Mon Sep 17 00:00:00 2001 From: liugang Date: Tue, 28 Nov 2023 15:46:27 +0800 Subject: [PATCH] * userControl: refactor the refreshRandom method. --- module/user/control.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/module/user/control.php b/module/user/control.php index da3f5bd73c..7711a4d850 100755 --- a/module/user/control.php +++ b/module/user/control.php @@ -1158,14 +1158,15 @@ class user extends control } /** - * Refresh random for login + * 刷新用于登录的随机数。 + * Refresh random for login. * * @access public * @return void */ public function refreshRandom() { - $rand = (string)$this->user->updateSessionRandom(); - echo $rand; + $rand = $this->user->updateSessionRandom(); + echo (string)$rand; } }