namespace App\Exceptions
$request->session()->put('redirectpath',$request->getUri());
if($_SERVER['SERVER_NAME']=='mes.winhere.cn' or $_SERVER['SERVER_NAME']=='221.214.179.201' or $request->input('from')=="PC" or $liulanqi ){
return redirect()->guest('login');
}elseif($request->getUri()=="http://10.0.3.122/wms/index" ){
return redirect('http://10.0.3.91:53010/uaa/oauth/authorize?client_id=imwms&response_type=code');
}
else{
return redirect('http://10.0.3.91:53010/uaa/oauth/authorize?client_id=immes&response_type=code');
}
if($_SERVER['SERVER_NAME']=='mes.winhere.cn' or $_SERVER['SERVER_NAME']=='221.214.179.201' or $request->input('from')=="PC" or $liulanqi ){
return redirect()->guest('login');
}elseif($request->getUri()=="http://10.0.1.198/wms/index" ){
return redirect('http://10.0.1.191:53010/uaa/oauth/authorize?client_id=imwms&response_type=code');
}
else{
return redirect('http://10.0.1.191:53010/uaa/oauth/authorize?client_id=immes&response_type=code');
}
转载请注明出处:
未经允许不得转载:lxfamn » laravel 项目复刻