diff --git a/beike/Admin/Http/Controllers/CustomerController.php b/beike/Admin/Http/Controllers/CustomerController.php index 4e7c7a07..d90d84ab 100644 --- a/beike/Admin/Http/Controllers/CustomerController.php +++ b/beike/Admin/Http/Controllers/CustomerController.php @@ -51,7 +51,7 @@ class CustomerController extends Controller { $data = [ 'customer' => $customer, - 'customer_groups' => CustomerGroupRepo::list(true), + 'customer_groups' => CustomerGroupRepo::list(), '_redirect' => $this->getRedirect(), ]; diff --git a/beike/Repositories/CustomerGroupRepo.php b/beike/Repositories/CustomerGroupRepo.php index 7d628b20..ac3cb476 100644 --- a/beike/Repositories/CustomerGroupRepo.php +++ b/beike/Repositories/CustomerGroupRepo.php @@ -62,12 +62,9 @@ class CustomerGroupRepo } } - public static function list($onlyEnabled = false) + public static function list() { $builder = CustomerGroup::query(); - if ($onlyEnabled) { - $builder->where('stauts', 1); - } $groups = $builder->get(); return $groups;