From 9af43612ccdcee3948ef10cf0a335dcbf4164f5a Mon Sep 17 00:00:00 2001 From: changwei <867597730@qq.com> Date: Thu, 7 Jun 2018 18:28:38 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=BA=86=E6=A8=A1?= =?UTF-8?q?=E7=89=88=E6=8B=BC=E6=8E=A5=E9=94=99=E8=AF=AF=E7=9A=84BUG?= =?UTF-8?q?=EF=BC=8C=E5=BA=94=E8=AF=A5=E5=B0=86element=E5=8F=98=E9=87=8F?= =?UTF-8?q?=E6=8B=BC=E6=8E=A5=E5=88=B0img=E6=A0=87=E7=AD=BE=E7=9A=84id?= =?UTF-8?q?=E5=B1=9E=E6=80=A7=EF=BC=8C=E8=80=8C=E4=B8=8D=E6=98=AFalt?= =?UTF-8?q?=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 抱歉,昨天我提pr的时候忘记检查了,今天才发现这个BUG --- src/helper.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/helper.php b/src/helper.php index 380e0c4..a350403 100644 --- a/src/helper.php +++ b/src/helper.php @@ -57,8 +57,7 @@ function captcha_img($id = '') */ function captcha_img_with_replacement($id = '', $element = 'think-captcha') { - return '' . $element .
-        ''; } From 951cdb0a390a1a43e275a7ded4f57f4822f71ace Mon Sep 17 00:00:00 2001 From: changwei <867597730@qq.com> Date: Thu, 7 Jun 2018 18:31:09 +0800 Subject: [PATCH 2/3] =?UTF-8?q?Revert=20"=E8=A7=84=E8=8C=83readme=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=EF=BC=8C=E5=A2=9E=E5=8A=A0=E7=82=B9=E5=87=BB=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E8=87=AA=E5=8A=A8=E6=9B=B4=E6=8D=A2=E9=AA=8C=E8=AF=81?= =?UTF-8?q?=E7=A0=81=E7=9A=84=E5=8A=9F=E8=83=BD=E8=AF=B4=E6=98=8E"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit d7dcc6a61505345859a6a123ab2b681a2800fa58. --- README.md | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 1a21be6..0fced29 100644 --- a/README.md +++ b/README.md @@ -5,9 +5,9 @@ thinkphp5 验证码类库 > composer require topthink/think-captcha -## 使用 +##使用 -### 模板里输出验证码 +###模板里输出验证码 ~~~
{:captcha_img()}
@@ -18,11 +18,6 @@ thinkphp5 验证码类库 ~~~ > 上面两种的最终效果是一样的 -或者带有点击图片自动更换验证码的功能 -~~~ -
{:captcha_img_with_replacement()}
-~~~ - ### 控制器里验证 使用TP5的内置验证功能即可 ~~~ From 246728b345fec7653d127c46af12e16ca50574b8 Mon Sep 17 00:00:00 2001 From: changwei <867597730@qq.com> Date: Thu, 7 Jun 2018 18:31:46 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=BA=86=E6=A8=A1?= =?UTF-8?q?=E7=89=88=E6=8B=BC=E6=8E=A5=E9=94=99=E8=AF=AF=E7=9A=84BUG?= =?UTF-8?q?=EF=BC=8C=E5=BA=94=E8=AF=A5=E5=B0=86element=E5=8F=98=E9=87=8F?= =?UTF-8?q?=E6=8B=BC=E6=8E=A5=E5=88=B0img=E6=A0=87=E7=AD=BE=E7=9A=84id?= =?UTF-8?q?=E5=B1=9E=E6=80=A7=EF=BC=8C=E8=80=8C=E4=B8=8D=E6=98=AFalt?= =?UTF-8?q?=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/helper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/helper.php b/src/helper.php index a350403..99e0e37 100644 --- a/src/helper.php +++ b/src/helper.php @@ -57,8 +57,8 @@ function captcha_img($id = '') */ function captcha_img_with_replacement($id = '', $element = 'think-captcha') { - return 'captcha'; + return 'captcha'; }