/**
* 验证码获取
*/
use think\Verify;
public function verify()
{
//验证码类型
$type = I('get.type') ? I('get.type') : 'user_login';
$config = array(
'fontSize' => 30,
'length' => 4,
'imageH' => 60,
'imageW' => 300,
'fontttf' => '5.ttf',
'useCurve' => false,
'useNoise' => false,
'codeSet' => '2345678',
);
$Verify = new Verify($config);
$Verify->entry($type);
exit();
}
验证码获取
最新推荐文章于 2021-02-22 17:32:45 发布