mirror of
https://gitee.com/fastadminnet/think-captcha.git
synced 2026-07-06 16:02:48 +08:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6ab79cc547 | ||
|
|
9bf096c29a |
@@ -2,7 +2,7 @@
|
|||||||
thinkphp5 验证码类库
|
thinkphp5 验证码类库
|
||||||
|
|
||||||
## 安装
|
## 安装
|
||||||
> composer install topthink/think-captcha
|
> composer require topthink/think-captcha
|
||||||
|
|
||||||
|
|
||||||
##使用
|
##使用
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
*/
|
*/
|
||||||
function captcha($id = "", $config = [])
|
function captcha($id = "", $config = [])
|
||||||
{
|
{
|
||||||
$captcha = new \think\Captcha($config);
|
$captcha = new \think\captcha\Captcha($config);
|
||||||
$captcha->entry($id);
|
$captcha->entry($id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user