function reImg(){
var img = document.getElementById("code");
img.src = "{:U('Home/Yzmm/verify_c','','')}?rnd=" + Math.random();
}
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);
}
}
}