From 173191c24c79bb40aa167e55b15213d43ec12dd0 Mon Sep 17 00:00:00 2001 From: ELF <360197197@qq.com> Date: Tue, 24 Sep 2019 18:15:22 +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 --- .../Home/Controller/IndexController.class.php | 12 ++++++------ ThinkPHP/Mode/Lite/functions.php | 1 + 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Application/Home/Controller/IndexController.class.php b/Application/Home/Controller/IndexController.class.php index f5e2133b5..f852af782 100644 --- a/Application/Home/Controller/IndexController.class.php +++ b/Application/Home/Controller/IndexController.class.php @@ -193,12 +193,12 @@ class IndexController extends HomeController public function verify($vid = '') { $config = array( - 'seKey' => 'ThinkPHP.CN', //验证码加密密钥 - 'fontSize' => 16, // 验证码字体大小(px) - 'imageH' => 42, // 验证码图片高度 - 'imageW' => 107, // 验证码图片宽度 - 'length' => 4, // 验证码位数 - 'fontttf' => '4.ttf', // 验证码字体,不设置随机获取 + 'seKey' => 'ThinkPHP.CN', // 验证码加密密钥 + 'fontSize' => 16, // 验证码字体大小(px) + 'imageH' => 42, // 验证码图片高度 + 'imageW' => 107, // 验证码图片宽度 + 'length' => 4, // 验证码位数 + 'fontttf' => '4.ttf', // 验证码字体,不设置随机获取 'useCurve' => false, ); diff --git a/ThinkPHP/Mode/Lite/functions.php b/ThinkPHP/Mode/Lite/functions.php index 7cf10acdc..c7b3e584d 100644 --- a/ThinkPHP/Mode/Lite/functions.php +++ b/ThinkPHP/Mode/Lite/functions.php @@ -1206,6 +1206,7 @@ function session($name='',$value='') { } } }else{ // 设置session + var_dump('ssss');die(); if(strpos($name,'.')){ list($name1,$name2) = explode('.',$name); if($prefix){