This commit is contained in:
yunwuxin
2016-06-30 10:29:42 +08:00
parent 02eb4a2667
commit 5743f68647
3 changed files with 55 additions and 39 deletions

View File

@@ -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);
}