1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?php
- namespace App\Http\Middleware;
- use Closure;
- use Illuminate\Contracts\Auth\Factory as Auth;
- use App\Models\Assit;
- use App\Models\AssitLog;
- use Illuminate\Database\Eloquent\Model;
- use Illuminate\Support\Facades\Log;
- class SetRequestMiddleware
- {
- /**
- * Create a new middleware instance.
- *
- * @return void
- */
- public function __construct(Auth $auth){}
- /**
- * Handle an incoming request.
- *
- * @param \Illuminate\Http\Request $request
- * @param \Closure $next
- * @param string|null $guard
- * @return mixed
- */
- public function handle($request, Closure $next, $guard = null)
- {
- $system=$request->header('system');
- // if(in_array($system,['H5'])){
- // return response()->json([
- // "code"=>41104,
- // "msg"=>'系统维护中。。。',
- // "message"=>'系统维护中。。。',
- // "data"=>'系统维护中。。。'],200);
- // }
- return $next($request);
- }
- }
|