<?php
namespace Admin\Controller;
use Think\Controller;
class IndexController extends Controller {
public function index(){
$this->display();
}
public function vcode(){
$Verify = new \Think\Verify();
$Verify->entry(1);
}
public function check(){
header("Content-type: text/html; charset=utf-8");
$code=I('code');
$verify = new \Think\Verify();
if($verify->check($code, 1)){
echo "验证码正确";
}else{
$this->success("验证码错误");
}
}
}[