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的内置验证功能即可 ~~~ diff --git a/src/helper.php b/src/helper.php index 380e0c4..99e0e37 100644 --- a/src/helper.php +++ b/src/helper.php @@ -57,9 +57,8 @@ function captcha_img($id = '') */ function captcha_img_with_replacement($id = '', $element = 'think-captcha') { - return '' . $element .
-        ''; + return 'captcha'; }