|
|
@ -193,12 +193,12 @@ class IndexController extends HomeController
|
|
|
|
public function verify($vid = '')
|
|
|
|
public function verify($vid = '')
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$config = array(
|
|
|
|
$config = array(
|
|
|
|
'seKey' => 'ThinkPHP.CN', //验证码加密密钥
|
|
|
|
'seKey' => 'ThinkPHP.CN', // 验证码加密密钥
|
|
|
|
'fontSize' => 16, // 验证码字体大小(px)
|
|
|
|
'fontSize' => 16, // 验证码字体大小(px)
|
|
|
|
'imageH' => 42, // 验证码图片高度
|
|
|
|
'imageH' => 42, // 验证码图片高度
|
|
|
|
'imageW' => 107, // 验证码图片宽度
|
|
|
|
'imageW' => 107, // 验证码图片宽度
|
|
|
|
'length' => 4, // 验证码位数
|
|
|
|
'length' => 4, // 验证码位数
|
|
|
|
'fontttf' => '4.ttf', // 验证码字体,不设置随机获取
|
|
|
|
'fontttf' => '4.ttf', // 验证码字体,不设置随机获取
|
|
|
|
'useCurve' => false,
|
|
|
|
'useCurve' => false,
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|