userId = session('UID'); if(empty($this->userId)){ showJson(1000,1018,['url'=> url('','','',true)]); } $cacheKey = md5($this->userId.'qxq'); $this->userInfo = PRedis::get($cacheKey); } } ?>