From 7b62c0e3188b555687b5e34ae3dd8189bf26437d Mon Sep 17 00:00:00 2001 From: Mahdi Date: Sat, 15 Aug 2026 14:29:58 +0330 Subject: [PATCH] fix(sms): SuperAdmin wallet alerts ignore send_sms and go to all admins --- app/Services/SmsBilling/SmsAlertService.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Services/SmsBilling/SmsAlertService.php b/app/Services/SmsBilling/SmsAlertService.php index a5735ac..d44b35b 100644 --- a/app/Services/SmsBilling/SmsAlertService.php +++ b/app/Services/SmsBilling/SmsAlertService.php @@ -59,10 +59,11 @@ class SmsAlertService /** @return list */ private function alertRecipients(): array { + // پیامک‌های سوپرادمین/کیف پول: همه ادمین‌های فعال — بدون شرط send_sms + // (سوییچ send_sms فقط برای بقیه اعلان‌های داخلی محصول است) $numbers = [SmsWalletService::SUPER_ADMIN_MOBILE]; $adminNumbers = User::query() - ->where('send_sms', true) ->where('active', true) ->pluck('mobile') ->all();