thinkphp 检测验证码

/**
* 检测验证码
* @param integer $id 验证码ID
* @return boolean 检测结果
*/
function check_verify($code, $id = 1){
$verify = new \Think\Verify();
return $verify->check($code, $id);
}
posted @ 2017-03-17 10:25  杨广伟  阅读(192)  评论(0)    收藏  举报