new feature on sms and some bugs fixed

This commit is contained in:
2026-07-18 22:22:01 +03:30
parent 518334da11
commit fc9de5198c
20 changed files with 489 additions and 95 deletions
+9
View File
@@ -57,6 +57,15 @@ class ConfigService
return filter_var($value, FILTER_VALIDATE_BOOLEAN);
}
/**
* سوییچ‌های پیامک اعلان (sms_notif_* / charge_notif).
* کلید نباشد → $default (معمولاً true تا رفتار قبلی حفظ شود).
*/
public function isSmsNotifEnabled(string $key, bool $default = true): bool
{
return $this->getBool($key, $default);
}
/** فروشگاهی (قطره / کشکول) — روت‌ها و رفتار store فقط وقتی true باشد فعال می‌شوند */
public function isStore(): bool
{