修复反序列化的 bug
This commit is contained in:
parent
ba68cd26ef
commit
4625978ab1
@ -101,8 +101,8 @@ extern "C"
|
|||||||
{
|
{
|
||||||
auto json = nlohmann::json{
|
auto json = nlohmann::json{
|
||||||
{"name", name },
|
{"name", name },
|
||||||
{"problems", nlohmann::json(problems) },
|
{"problems", nlohmann::json::parse(problems)},
|
||||||
{"data", nlohmann::json::parse(data)}
|
{"data", nlohmann::json::parse(data) }
|
||||||
};
|
};
|
||||||
auto status = sets_db->Put(leveldb::WriteOptions{}, std::to_string(id), json.dump());
|
auto status = sets_db->Put(leveldb::WriteOptions{}, std::to_string(id), json.dump());
|
||||||
if (!status.ok()) {
|
if (!status.ok()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user