Skip to content

Commit

Permalink
fix: 修复迁移配置文件时配置为数组时的错误
Browse files Browse the repository at this point in the history
  • Loading branch information
gua committed Nov 23, 2023
1 parent 459e740 commit 4cbb2b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Console/Commands/MigrateFromV2b.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ public function MigrateV2ConfigToV2Settings()
}
Setting::create([
'name' => $k,
'value' => $v,
'value' => is_array($v)? json_encode($v) : $v,
]);
$this->info("配置 ${k} 迁移成功");
}
Expand Down

0 comments on commit 4cbb2b9

Please sign in to comment.