Fix serverStatus api jackson error

This commit is contained in:
KomachiSion 2020-05-29 12:05:14 +08:00
parent 93f8533565
commit 810827c91c

View File

@ -288,8 +288,8 @@ public class ServiceController {
JsonNode json = JacksonUtils.toObj(value);
//format: service1@@checksum@@@service2@@checksum
String statuses = json.get("statuses").toString();
String serverIp = json.get("clientIP").toString();
String statuses = json.get("statuses").asText();
String serverIp = json.get("clientIP").asText();
if (!memberManager.hasMember(serverIp)) {
throw new NacosException(NacosException.INVALID_PARAM,