<?php
/*
 本代码由 口号帮 创建
 创建时间 2019-05-08 16:22:09
 技术支持 口号帮 
 严禁反编译、逆向等任何形式的侵权行为，违者将追究法律责任
*/

namespace App\Http\Middleware;use App\Models\Member;use Closure;use Illuminate\Support\Facades\Session;class PcCheckLogin{public function handle($request,Closure $next){if(Session::get('token'))goto P2gBodyx2;goto P2gNextx2;P2gBodyx2:$user=Member::where(['remember_token'=>Session::get('token')])->first();if($user)goto P2gBodyx4;goto P2gNextx4;P2gBodyx4:return $next($request);goto P2gx3;P2gNextx4:return redirect('/index');P2gx3:goto P2gx1;P2gNextx2:return redirect('/index');P2gx1:}}
?>