From 988d165aae3fcffb9b21190c8c964f0bc5213863 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BF=9F=E5=B8=85=E5=B9=B2?= Date: Thu, 12 May 2016 17:19:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=AA=8C=E8=AF=81=E7=A0=81?= =?UTF-8?q?=E4=B8=8D=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/CaptchaController.php | 3 +-- src/helper.php | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/CaptchaController.php b/src/CaptchaController.php index 37fa592..f852b5a 100644 --- a/src/CaptchaController.php +++ b/src/CaptchaController.php @@ -12,9 +12,8 @@ namespace think\captcha; use think\Config; -use think\Controller; -class CaptchaController extends Controller +class CaptchaController { public function index($id = "") { diff --git a/src/helper.php b/src/helper.php index dd0b407..555077c 100644 --- a/src/helper.php +++ b/src/helper.php @@ -35,7 +35,7 @@ function captcha($id = "", $config = []) */ function captcha_src($id = "") { - return \think\Url::build('/captcha' . $id ? "/{$id}" : ''); + return \think\Url::build('/captcha' . ($id ? "/{$id}" : '')); }