diff --git a/app/Models/Dealer.php b/app/Models/Dealer.php index 78ac69f9..d31e8854 100644 --- a/app/Models/Dealer.php +++ b/app/Models/Dealer.php @@ -248,7 +248,7 @@ class Dealer extends Model $lines = []; foreach ($dealers as $dealer) { - preg_match("#\A{$path}\d+/#", $dealer->full_path, $matches); + preg_match("#\A{$path}\d+-#", $dealer->full_path, $matches); $line = $matches[0]; diff --git a/app/Models/UserInfo.php b/app/Models/UserInfo.php index 5f7cab12..5c1eb6f9 100644 --- a/app/Models/UserInfo.php +++ b/app/Models/UserInfo.php @@ -217,7 +217,7 @@ class UserInfo extends Model $lines = []; foreach ($agents as $agent) { - preg_match("#\A{$path}\d+/#", $agent->full_path, $matches); + preg_match("#\A{$path}\d+-#", $agent->full_path, $matches); $line = $matches[0]; @@ -244,7 +244,7 @@ class UserInfo extends Model $lines = []; foreach ($agents as $agent) { - preg_match("#\A{$path}\d+/#", $agent->full_path, $matches); + preg_match("#\A{$path}\d+-#", $agent->full_path, $matches); $line = $matches[0]; @@ -271,7 +271,7 @@ class UserInfo extends Model $lines = []; foreach ($agents as $agent) { - preg_match("#\A{$path}\d+/#", $agent->full_path, $matches); + preg_match("#\A{$path}\d+-#", $agent->full_path, $matches); $line = $matches[0];