ThinkPHP 中验证码的看不清切换













namespace Home\Controller;
use Think\Controller;
class YzmmController extends Controller {

public function index(){
$this->display();
}


public function verify_c(){

$Verify = new \Think\Verify();

$Verify->entry();
}
public function del(){
$this->display();
}

function check_verify($code, $id = ''){
$verify = new \Think\Verify();
return $verify->check($code, $id);
}


public function checkLogin(){
$verify = new \Think\Verify();
if($verify->check(I('post.code'))){
$this->success('验证码正确',U('Home/Yzmm/del'),3);
}else{
$this->error('验证码错误',U('Home/Yzmm/index'),3);
}
}
}

转载于:https://www.cnblogs.com/bbnm/p/5867330.html

你可能感兴趣的:(ThinkPHP 中验证码的看不清切换)