fix kashkool

This commit is contained in:
2026-06-30 21:44:39 +03:30
parent 4a697af4c7
commit cd81ea8af0
9 changed files with 130 additions and 86 deletions
+6
View File
@@ -63,6 +63,12 @@ class ConfigService
return $this->getBool('is_store', false);
}
/** کد معرف در ثبت‌نام اجباری است (تنظیم referral_id = required) */
public function isReferralRequired(): bool
{
return strtolower(trim($this->getString('referral_id'))) === 'required';
}
public function getInt(string $key, int $default = 0): int
{
$value = $this->get($key, $default);