diff --git a/common/model/config_file.go b/common/model/config_file.go index a8dc04f26..12057b708 100644 --- a/common/model/config_file.go +++ b/common/model/config_file.go @@ -424,7 +424,7 @@ func FromTagMap(kvs map[string]string) []*config_manage.ConfigFileTag { func ToTagMap(tags []*config_manage.ConfigFileTag) map[string]string { kvs := map[string]string{} for i := range tags { - kvs[tags[i].GetKey().GetValue()] = tags[i].GetKey().GetValue() + kvs[tags[i].GetKey().GetValue()] = tags[i].GetValue().GetValue() } return kvs diff --git a/service/client_v1.go b/service/client_v1.go index 2b900b51b..cb4214b9f 100644 --- a/service/client_v1.go +++ b/service/client_v1.go @@ -494,22 +494,26 @@ func (s *Server) getServiceCache(name string, namespace string) *model.Service { func (s *Server) commonCheckDiscoverRequest(req *apiservice.Service, resp *apiservice.DiscoverResponse) bool { if s.caches == nil { resp.Code = utils.NewUInt32Value(uint32(apimodel.Code_ClientAPINotOpen)) + resp.Info = utils.NewStringValue(api.Code2Info(resp.GetCode().GetValue())) resp.Service = req return false } if req == nil { resp.Code = utils.NewUInt32Value(uint32(apimodel.Code_EmptyRequest)) + resp.Info = utils.NewStringValue(api.Code2Info(resp.GetCode().GetValue())) resp.Service = req return false } if req.GetName().GetValue() == "" { resp.Code = utils.NewUInt32Value(uint32(apimodel.Code_InvalidServiceName)) + resp.Info = utils.NewStringValue(api.Code2Info(resp.GetCode().GetValue())) resp.Service = req return false } if req.GetNamespace().GetValue() == "" { resp.Code = utils.NewUInt32Value(uint32(apimodel.Code_InvalidNamespaceName)) + resp.Info = utils.NewStringValue(api.Code2Info(resp.GetCode().GetValue())) resp.Service = req return false } diff --git a/version b/version index a2f6f2c9c..2b44162b1 100644 --- a/version +++ b/version @@ -1 +1 @@ -v1.17.3 +v1.17.6