优化setting 保存json
This commit is contained in:
parent
59bcdb0fda
commit
3ff13b3c70
|
|
@ -110,8 +110,8 @@ class SettingRepo
|
||||||
'type' => $type,
|
'type' => $type,
|
||||||
'space' => $code,
|
'space' => $code,
|
||||||
'name' => $name,
|
'name' => $name,
|
||||||
'value' => (string) $value,
|
'value' => is_array($value) ? json_encode($value) : (string)$value,
|
||||||
'json' => 0,
|
'json' => is_array($value),
|
||||||
'created_at' => Carbon::now(),
|
'created_at' => Carbon::now(),
|
||||||
'updated_at' => Carbon::now(),
|
'updated_at' => Carbon::now(),
|
||||||
];
|
];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue