update setting

This commit is contained in:
Edward Yang 2022-07-22 09:00:18 +08:00
parent 39c05d051d
commit bd2eddb196
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ class SettingRepo
$space = $data['space'] ?? '';
$name = $data['name'] ?? '';
$value = (string)$data['value'] ?? '';
$json = (bool)$data['json'] ?? '';
$json = (bool)$data['json'] ?? is_array($value);
$setting = Setting::query()
->where('type', $type)