...
|
...
|
@@ -21,6 +21,7 @@ class Com extends Base |
|
|
public function code(){
|
|
|
$this->response('验证码',200,'111');
|
|
|
$config = [
|
|
|
'codeSet' => '1234567890',
|
|
|
// 验证码字体大小
|
|
|
'fontSize' => 30,
|
|
|
// 验证码位数
|
...
|
...
|
@@ -29,7 +30,6 @@ class Com extends Base |
|
|
'useNoise' => false,
|
|
|
];
|
|
|
$captcha = new Captcha($config);
|
|
|
Session::set('captcha',);
|
|
|
$this->response('验证码',200,$captcha->entry());
|
|
|
}
|
|
|
/**
|
...
|
...
|
|