laravel 项目复刻

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');
            }

转载请注明出处:

转载自http://lxfamn.cn/blog

未经允许不得转载:lxfamn » laravel 项目复刻

赞 (0) 打赏

置顶推荐

评论 0

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏