文章详情
用在二次开发时,处理验证码发送程序,适合精通php的程序员
模板代码:
{dr_code(120, 35)}
id传递手机号码
程序判断部分:
$code = \Phpcmf\Service::L('Form')->get_mobile_code($phone);
if (!$code) {
$this->_json(0, dr_lang('没有发送验证码'));
} elseif ($code != $_POST['sms']) {
$this->_json(0, dr_lang('验证码不正确'));
}
来源:网站建设网
版权:所有文章为演示数据,版权归原作者所有,仅提供演示效果!
转载请注明出处:https://wzjianshe.com/eckf/6170.html