fix: 修复迁移配置文件时配置为数组时的错误

This commit is contained in:
xboard 2023-11-23 18:35:18 +08:00
parent d832015136
commit 6aadeb5b84

View File

@ -172,7 +172,7 @@ class MigrateFromV2b extends Command
} }
Setting::create([ Setting::create([
'name' => $k, 'name' => $k,
'value' => $v, 'value' => is_array($v)? json_encode($v) : $v,
]); ]);
$this->info("配置 ${k} 迁移成功"); $this->info("配置 ${k} 迁移成功");
} }