<?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 AX46B; pZ_U6: if (!CaptchaFacade::check($zGKdK)) { return Response::generate(-1, '图片验证码错误', null, '[js]$(\'[data-captcha]\').click();'); } goto p8kiG; AX46B: $fAvwi = InputPackage::buildFromInput(); goto WPrh3; WPrh3: $zGKdK = $fAvwi->getTrimString('captcha'); goto pZ_U6; p8kiG: return Response::generateSuccess(); goto b4W4M; b4W4M: } }