作者 liyuhang

csdm

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