<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Member\Middleware; use Illuminate\Support\Facades\Session; use Illuminate\Support\Facades\View; use ModStart\Core\Input\Request; use ModStart\Core\Input\Response; use Module\Member\Support\MemberLoginCheck; use Module\Member\Type\MemberStatus; use Module\Member\Util\MemberUtil; class WebAuthMiddleware { public function handle($TA9FP, \Closure $Hjh41) { goto QRhYn; NLROL: if ($nlOSA) { goto u6t5F; KAkuU: if ($KAIwS) { switch ($KAIwS['status']) { case MemberStatus::FORBIDDEN: $KAIwS = null; break; } } goto kS2mG; u6t5F: $KAIwS = MemberUtil::get($nlOSA); goto Rlkeo; Rlkeo: MemberUtil::processDefault($KAIwS); goto KAkuU; kS2mG: } goto W2Skg; m7ssd: Session::put('memberUserId', $nlOSA); goto kzgqZ; ewWcc: $nlOSA = intval(Session::get('memberUserId', 0)); goto fvTU3; rjMHS: if (empty($nlOSA)) { if (is_subclass_of($xEfX6, MemberLoginCheck::class)) { if (property_exists($xEfX6, 'memberLoginCheckIgnores') && is_array($xEfX6::$memberLoginCheckIgnores) && in_array($S6sAJ, $xEfX6::$memberLoginCheckIgnores)) { } else { return Response::send(-1, null, null, modstart_web_url('login') . '?redirect=' . urlencode(Request::currentPageUrl())); } } } goto m7ssd; QRhYn: list($xEfX6, $S6sAJ) = Request::getControllerAction(); goto ewWcc; dfyAT: return $Hjh41($TA9FP); goto tyvNw; kzgqZ: Session::flash('_memberUser', $KAIwS); goto QPVSi; QPVSi: View::share('_memberUser', $KAIwS); goto dfyAT; W2Skg: if ($nlOSA && !$KAIwS) { $nlOSA = 0; Session::forget('memberUserId'); } goto njAQ8; fvTU3: $KAIwS = null; goto NLROL; njAQ8: View::share('_memberUserId', $nlOSA); goto rjMHS; tyvNw: } }