Fix deserialize error for raft beat

This commit is contained in:
KomachiSion 2020-05-29 16:22:33 +08:00
parent da4cc10e8a
commit d396a885ea

View File

@ -128,7 +128,7 @@ public class RaftController {
String value = URLDecoder.decode(entity, "UTF-8");
JsonNode json = JacksonUtils.toObj(value);
String key = json.get("key").toString();
String key = json.get("key").asText();
if (KeyBuilder.matchInstanceListKey(key)) {
raftConsistencyService.put(key, JacksonUtils.toObj(json.get("value").toString(), Instances.class));
return "ok";