diff --git a/beike/Repositories/RmaReasonRepo.php b/beike/Repositories/RmaReasonRepo.php index 188c2ab5..0c9d0cbd 100644 --- a/beike/Repositories/RmaReasonRepo.php +++ b/beike/Repositories/RmaReasonRepo.php @@ -78,7 +78,7 @@ class RmaReasonRepo */ public static function list(array $data = []) { - $builder = RmaReason::query()->where('locale', current_language()); + $builder = RmaReason::query()->where('locale', locale()); if (isset($data['name'])) { $builder->where('name', 'like', "%{$data['name']}%");