new feature on sms and some bugs fixed
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user