验证码出过期问题

浏览:1055 发布日期:2017/01/20 分类:ThinkPHP5专区 关键字: 验证码
strtoupper() expects parameter 1 to be string, array given
if (empty($code) || empty($secode)) {
return false;
}
// session 过期
if (time() - $secode['verify_time'] > $this->expire) {
Session::delete($key, '');
return false;
}

if ($this->authcode(strtoupper($code)) == $secode['verify_code']) {
$this->reset && Session::delete($key, '');
return true;
}

return false;
}

/**
* 输出验证码并把验证码的值保存的session中
最佳答案
评论( 相关
后面还有条评论,点击查看>>