新增多语言转换 mqtt支持websocket
This commit is contained in:
@@ -59,12 +59,14 @@ class NacosDiscovery implements Discovery {
|
||||
'groupName': groupName,
|
||||
'namespaceId': config.namespaceId,
|
||||
});
|
||||
print(rr);
|
||||
if (rr.data["code"] != 10200) {
|
||||
print(rr);
|
||||
}
|
||||
//判断心跳是否发送成功
|
||||
if(rr.data["code"]==20404){
|
||||
if (rr.data["code"] == 20404) {
|
||||
//实例未注册 重新注册实例
|
||||
healthCheck = false;
|
||||
registerInstance(serviceName, ip, port,groupName: groupName);
|
||||
registerInstance(serviceName, ip, port, groupName: groupName);
|
||||
}
|
||||
} catch (e) {
|
||||
print(e);
|
||||
|
||||
Reference in New Issue
Block a user