<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Photo\Web\Controller; use Illuminate\Support\Facades\Session; use ModStart\Core\Input\InputPackage; use ModStart\Core\Input\Request; use ModStart\Core\Input\Response; use ModStart\Module\ModuleBaseController; use Module\Photo\Type\PhotoVisitType; class BaseController extends ModuleBaseController { protected function authCheck() { if (modstart_config('modulePhotoVisitType', PhotoVisitType::VISIT_PUBLIC) == PhotoVisitType::VISIT_PASSWORD) { if (!Session::get('modulePhotoVisitAuth', false)) { if (Request::isPost()) { goto gk0_1; QK30L: Session::put('modulePhotoVisitAuth', true); goto DQekM; uoVcr: if ($gQvAP != modstart_config('modulePhotoVisitPassword', '')) { return Response::jsonError('访问密码不正确'); } goto QK30L; Z6osE: $gQvAP = $fAvwi->getTrimString('password'); goto uoVcr; gk0_1: $fAvwi = InputPackage::buildFromInput(); goto Z6osE; DQekM: return Response::redirect('[reload]'); goto mnW_d; mnW_d: } else { return $this->view('photo.auth'); } } } return null; } }