mirror of
https://gitee.com/fastadminnet/think-captcha.git
synced 2026-07-07 00:12:48 +08:00
改进
This commit is contained in:
@@ -21,11 +21,12 @@
|
||||
/**
|
||||
* @param string $id
|
||||
* @param array $config
|
||||
* @return \think\Response
|
||||
*/
|
||||
function captcha($id = "", $config = [])
|
||||
{
|
||||
$captcha = new \think\captcha\Captcha($config);
|
||||
$captcha->entry($id);
|
||||
return $captcha->entry($id);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user