Fix flight search restriction

This commit is contained in:
Kevin
2018-09-02 22:20:52 +08:00
parent e71f12311a
commit 20d8a2d0a7
2 changed files with 19 additions and 4 deletions

View File

@@ -51,7 +51,7 @@ class SettingRepository extends Repository implements CacheableInterface
case 'bool':
case 'boolean':
$value = $setting->value;
return $value === 'true' || $value === '1' || $value === 1;
return $value === 'true' || $value === '1' || $value === 1 || $value === 'on';
case 'date':
return Carbon::parse($setting->value);
case 'int':