<?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 sM0UC; sM0UC: $Km8YS = InputPackage::buildFromInput(); goto P8J6I; uM51r: if (!CaptchaFacade::check($mwdSl)) { return Response::generate(-1, '图片验证码错误', null, '[js]$(\'[data-captcha]\').click();'); } goto mxcv0; mxcv0: return Response::generateSuccess(); goto mg2fO; P8J6I: $mwdSl = $Km8YS->getTrimString('captcha'); goto uM51r; mg2fO: } }