<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Captcha; use Illuminate\Support\Facades\View; use ModStart\Core\Input\InputPackage; use ModStart\Core\Input\Response; use ModStart\Misc\Captcha\CaptchaFacade; class DefaultCaptchaProvider extends AbstractCaptchaProvider { public function render() { return View::make('module::Vendor.View.widget.captcha.default')->render(); } public function validate() { goto pPybT; i8HiA: if (!CaptchaFacade::check($V4l1p)) { return Response::generate(-1, '图片验证码错误', null, '[js]$(\'[data-captcha]\').click();'); } goto dK4wm; pPybT: $Nw6ws = InputPackage::buildFromInput(); goto jNDno; dK4wm: return Response::generateSuccess(); goto Qn50p; jNDno: $V4l1p = $Nw6ws->getTrimString('captcha'); goto i8HiA; Qn50p: } }