|
@@ -25,9 +25,9 @@ use App\Models\DistAdminDistributor;
|
|
|
*/
|
|
|
|
|
|
|
|
|
-$host = $_SERVER['HTTP_HOST'];
|
|
|
-$uri = $_SERVER['REQUEST_URI'];
|
|
|
-$brHost = 'internal-demo-site.mietubl.com.cn';
|
|
|
+$host = request()->getHttpHost();
|
|
|
+$uri = request()->getRequestUri();
|
|
|
+$brHost = env('BR_HOST');
|
|
|
if ($host == $brHost) {
|
|
|
$segments = explode('/', $uri);
|
|
|
if ($segments) {
|
|
@@ -51,7 +51,6 @@ if ($host == $brHost) {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
|
|
|
|