From 8edc9ddbfeaae9f9a958c2c2d335bec3c451ddbe Mon Sep 17 00:00:00 2001 From: Devil Date: Thu, 15 Apr 2021 10:33:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E7=89=87=E9=AA=8C=E8=AF=81=E7=A0=81?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/base/Verify.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/extend/base/Verify.php b/extend/base/Verify.php index 90f2dca4c..ac149889f 100755 --- a/extend/base/Verify.php +++ b/extend/base/Verify.php @@ -32,7 +32,7 @@ class Verify private $use_text_color_back; private $key_verify; private $expire_time; - private $user_uid; + private $uid; /** * [__construct 构造方法] @@ -67,7 +67,7 @@ class Verify $this->expire_time = isset($param['expire_time']) ? intval($param['expire_time']) : 30; // 用户唯一uid - $this->user_uid = ResourcesService::UserUniqueId(); + $this->uid = ResourcesService::UserUniqueId(); } /** @@ -153,11 +153,11 @@ class Verify public function CheckExpire() { // 空uid则存储session - if(empty($this->user_uid)) + if(empty($this->uid)) { $data = session($this->key_verify); } else { - $data = cache($this->key_verify.$this->user_uid); + $data = cache($this->key_verify.$this->uid); } if(!empty($data) && isset($data['time'])) @@ -179,11 +179,11 @@ class Verify public function CheckCorrect($verify = '') { // 空uid则存储session - if(empty($this->user_uid)) + if(empty($this->uid)) { $data = session($this->key_verify); } else { - $data = cache($this->key_verify.$this->user_uid); + $data = cache($this->key_verify.$this->uid); } if(!empty($data) && isset($data['verify'])) { @@ -207,11 +207,11 @@ class Verify public function Remove() { // 空uid则处理session - if(empty($this->user_uid)) + if(empty($this->uid)) { session($this->key_verify, null); } else { - cache($this->key_verify.$this->user_uid, null); + cache($this->key_verify.$this->uid, null); } } @@ -230,11 +230,11 @@ class Verify ]; // 空uid则存储session - if(empty($this->user_uid)) + if(empty($this->uid)) { session($this->key_verify, $data); } else { - cache($this->key_verify.$this->user_uid, $data, $this->expire_time); + cache($this->key_verify.$this->uid, $data, $this->expire_time); } }