From a37d2a8714e6d8361a1fbfe681c5b2723cf10d65 Mon Sep 17 00:00:00 2001
From: lemon <15040771@qq.com>
Date: Wed, 15 Sep 2021 15:32:22 +0800
Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=BB=9F=E8=AE=A1?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
 app/Admin/Controllers/AgentStatisticsController.php           | 2 +-
 app/Admin/Controllers/OrderStatisticsController.php           | 2 +-
 app/Admin/Controllers/ProductStatisticsController.php         | 2 +-
 app/Admin/Controllers/SupplierStatisticsController.php        | 2 +-
 app/Admin/Controllers/UserStatisticsController.php            | 2 +-
 app/AdminAgent/Controllers/FinanceStatisticsController.php    | 2 +-
 app/AdminAgent/Controllers/OrderStatisticsController.php      | 2 +-
 app/AdminAgent/Controllers/ProductStatisticsController.php    | 2 +-
 app/AdminAgent/Controllers/UserStatisticsController.php       | 2 +-
 app/AdminSupplier/Controllers/FinanceStatisticsController.php | 2 +-
 app/AdminSupplier/Controllers/OrderStatisticsController.php   | 2 +-
 app/AdminSupplier/Controllers/ProductStatisticsController.php | 2 +-
 12 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/app/Admin/Controllers/AgentStatisticsController.php b/app/Admin/Controllers/AgentStatisticsController.php
index f6d32cf..da464ad 100755
--- a/app/Admin/Controllers/AgentStatisticsController.php
+++ b/app/Admin/Controllers/AgentStatisticsController.php
@@ -79,7 +79,7 @@ class AgentStatisticsController extends AdminController
 						$querys = \request()->all();
 						$querys['time_key'] = $k;
 						$queryString = http_build_query($querys);
-						$str = Str::replaceFirst('admin/', '', request()->path());
+						$str = Str::after(request()->path(),'/');
 						$url = admin_url($str . '?' . $queryString);
 						// 此处设置的 data-xxx 属性会作为post数据发送到后端api
 						return "{$v}";
diff --git a/app/Admin/Controllers/OrderStatisticsController.php b/app/Admin/Controllers/OrderStatisticsController.php
index dec9d61..6fb3c25 100755
--- a/app/Admin/Controllers/OrderStatisticsController.php
+++ b/app/Admin/Controllers/OrderStatisticsController.php
@@ -116,7 +116,7 @@ HTML;
 						$querys = \request()->all();
 						$querys['time_key'] = $k;
 						$queryString = http_build_query($querys);
-						$str = Str::replaceFirst('admin/','',request()->path());
+						$str = Str::after(request()->path(),'/');
 						$url = admin_url($str.'?'.$queryString);
 						// 此处设置的 data-xxx 属性会作为post数据发送到后端api
 						return "{$v}";
diff --git a/app/Admin/Controllers/ProductStatisticsController.php b/app/Admin/Controllers/ProductStatisticsController.php
index 2672fc9..8582c3f 100755
--- a/app/Admin/Controllers/ProductStatisticsController.php
+++ b/app/Admin/Controllers/ProductStatisticsController.php
@@ -140,7 +140,7 @@ HTML;
 						$querys = \request()->all();
 						$querys['time_key'] = $k;
 						$queryString = http_build_query($querys);
-						$str = Str::replaceFirst('admin/','',request()->path());
+						$str = Str::after(request()->path(),'/');
 						$url = admin_url($str.'?'.$queryString);
 						// 此处设置的 data-xxx 属性会作为post数据发送到后端api
 						return "{$v}";
diff --git a/app/Admin/Controllers/SupplierStatisticsController.php b/app/Admin/Controllers/SupplierStatisticsController.php
index d4800d3..2238ba7 100755
--- a/app/Admin/Controllers/SupplierStatisticsController.php
+++ b/app/Admin/Controllers/SupplierStatisticsController.php
@@ -79,7 +79,7 @@ class SupplierStatisticsController extends AdminController
 						$querys = \request()->all();
 						$querys['time_key'] = $k;
 						$queryString = http_build_query($querys);
-						$str = Str::replaceFirst('admin/', '', request()->path());
+						$str = Str::after(request()->path(),'/');
 						$url = admin_url($str . '?' . $queryString);
 						// 此处设置的 data-xxx 属性会作为post数据发送到后端api
 						return "{$v}";
diff --git a/app/Admin/Controllers/UserStatisticsController.php b/app/Admin/Controllers/UserStatisticsController.php
index 57069e7..7222dd6 100755
--- a/app/Admin/Controllers/UserStatisticsController.php
+++ b/app/Admin/Controllers/UserStatisticsController.php
@@ -78,7 +78,7 @@ class UserStatisticsController extends AdminController
 						$querys = \request()->all();
 						$querys['time_key'] = $k;
 						$queryString = http_build_query($querys);
-						$str = Str::replaceFirst('admin/', '', request()->path());
+						$str = Str::after(request()->path(),'/');
 						$url = admin_url($str . '?' . $queryString);
 						// 此处设置的 data-xxx 属性会作为post数据发送到后端api
 						return "{$v}";
diff --git a/app/AdminAgent/Controllers/FinanceStatisticsController.php b/app/AdminAgent/Controllers/FinanceStatisticsController.php
index 826b1b1..121fa21 100755
--- a/app/AdminAgent/Controllers/FinanceStatisticsController.php
+++ b/app/AdminAgent/Controllers/FinanceStatisticsController.php
@@ -130,7 +130,7 @@ HTML;
 						$querys = \request()->all();
 						$querys['time_key'] = $k;
 						$queryString = http_build_query($querys);
-						$str = Str::replaceFirst('admin-agent/','',request()->path());
+						$str = Str::after(request()->path(),'/');
 						$url = admin_url($str.'?'.$queryString);
 						// 此处设置的 data-xxx 属性会作为post数据发送到后端api
 						return "{$v}";
diff --git a/app/AdminAgent/Controllers/OrderStatisticsController.php b/app/AdminAgent/Controllers/OrderStatisticsController.php
index 1963d2b..237f003 100755
--- a/app/AdminAgent/Controllers/OrderStatisticsController.php
+++ b/app/AdminAgent/Controllers/OrderStatisticsController.php
@@ -117,7 +117,7 @@ HTML;
 						$querys = \request()->all();
 						$querys['time_key'] = $k;
 						$queryString = http_build_query($querys);
-						$str = Str::replaceFirst('admin-agent/','',request()->path());
+						$str = Str::after(request()->path(),'/');
 						$url = admin_url($str.'?'.$queryString);
 						// 此处设置的 data-xxx 属性会作为post数据发送到后端api
 						return "{$v}";
diff --git a/app/AdminAgent/Controllers/ProductStatisticsController.php b/app/AdminAgent/Controllers/ProductStatisticsController.php
index 66774ff..49df036 100755
--- a/app/AdminAgent/Controllers/ProductStatisticsController.php
+++ b/app/AdminAgent/Controllers/ProductStatisticsController.php
@@ -141,7 +141,7 @@ HTML;
 						$querys = \request()->all();
 						$querys['time_key'] = $k;
 						$queryString = http_build_query($querys);
-						$str = Str::replaceFirst('admin-agent/','',request()->path());
+						$str = Str::after(request()->path(),'/');
 						$url = admin_url($str.'?'.$queryString);
 						// 此处设置的 data-xxx 属性会作为post数据发送到后端api
 						return "{$v}";
diff --git a/app/AdminAgent/Controllers/UserStatisticsController.php b/app/AdminAgent/Controllers/UserStatisticsController.php
index fd739ad..4abc033 100755
--- a/app/AdminAgent/Controllers/UserStatisticsController.php
+++ b/app/AdminAgent/Controllers/UserStatisticsController.php
@@ -78,7 +78,7 @@ class UserStatisticsController extends AdminController
 						$querys = \request()->all();
 						$querys['time_key'] = $k;
 						$queryString = http_build_query($querys);
-						$str = Str::replaceFirst('admin-agent/', '', request()->path());
+						$str = Str::after(request()->path(),'/');
 						$url = admin_url($str . '?' . $queryString);
 						// 此处设置的 data-xxx 属性会作为post数据发送到后端api
 						return "{$v}";
diff --git a/app/AdminSupplier/Controllers/FinanceStatisticsController.php b/app/AdminSupplier/Controllers/FinanceStatisticsController.php
index 83e2951..e374d4a 100755
--- a/app/AdminSupplier/Controllers/FinanceStatisticsController.php
+++ b/app/AdminSupplier/Controllers/FinanceStatisticsController.php
@@ -134,7 +134,7 @@ HTML;
 						$querys = \request()->all();
 						$querys['time_key'] = $k;
 						$queryString = http_build_query($querys);
-						$str = Str::replaceFirst('admin-supplier/','',request()->path());
+						$str = Str::after(request()->path(),'/');
 						$url = admin_url($str.'?'.$queryString);
 						// 此处设置的 data-xxx 属性会作为post数据发送到后端api
 						return "{$v}";
diff --git a/app/AdminSupplier/Controllers/OrderStatisticsController.php b/app/AdminSupplier/Controllers/OrderStatisticsController.php
index 13aac05..39e1f5c 100755
--- a/app/AdminSupplier/Controllers/OrderStatisticsController.php
+++ b/app/AdminSupplier/Controllers/OrderStatisticsController.php
@@ -118,7 +118,7 @@ HTML;
 						$querys = \request()->all();
 						$querys['time_key'] = $k;
 						$queryString = http_build_query($querys);
-						$str = Str::replaceFirst('admin-supplier/','',request()->path());
+						$str = Str::after(request()->path(),'/');
 						$url = admin_url($str.'?'.$queryString);
 						// 此处设置的 data-xxx 属性会作为post数据发送到后端api
 						return "{$v}";
diff --git a/app/AdminSupplier/Controllers/ProductStatisticsController.php b/app/AdminSupplier/Controllers/ProductStatisticsController.php
index ff82943..8f31488 100755
--- a/app/AdminSupplier/Controllers/ProductStatisticsController.php
+++ b/app/AdminSupplier/Controllers/ProductStatisticsController.php
@@ -139,7 +139,7 @@ HTML;
 						$querys = \request()->all();
 						$querys['time_key'] = $k;
 						$queryString = http_build_query($querys);
-						$str = Str::replaceFirst('admin-supplier/','',request()->path());
+						$str = Str::after(request()->path(),'/');
 						$url = admin_url($str.'?'.$queryString);
 						// 此处设置的 data-xxx 属性会作为post数据发送到后端api
 						return "{$v}";