From 2a0ceb4f119e5562e568f7edc26b28defec12d31 Mon Sep 17 00:00:00 2001 From: ELF <360197197@qq.com> Date: Tue, 24 Sep 2019 18:19:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ThinkPHP/Library/Think/Verify.class.php | 4 +++- ThinkPHP/Mode/Lite/functions.php | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ThinkPHP/Library/Think/Verify.class.php b/ThinkPHP/Library/Think/Verify.class.php index c2b17a878..e14f5e261 100644 --- a/ThinkPHP/Library/Think/Verify.class.php +++ b/ThinkPHP/Library/Think/Verify.class.php @@ -176,8 +176,10 @@ class Verify { $secode = array(); $secode['verify_code'] = $code; // 把校验码保存到session $secode['verify_time'] = NOW_TIME; // 验证码创建时间 - var_dump($secode);die(); + session($key.$id, $secode); + var_dump($_SESSION); + die(); header('Cache-Control: private, max-age=0, no-store, no-cache, must-revalidate'); header('Cache-Control: post-check=0, pre-check=0', false); diff --git a/ThinkPHP/Mode/Lite/functions.php b/ThinkPHP/Mode/Lite/functions.php index c7b3e584d..7cf10acdc 100644 --- a/ThinkPHP/Mode/Lite/functions.php +++ b/ThinkPHP/Mode/Lite/functions.php @@ -1206,7 +1206,6 @@ function session($name='',$value='') { } } }else{ // 设置session - var_dump('ssss');die(); if(strpos($name,'.')){ list($name1,$name2) = explode('.',$name); if($prefix){