From a1a87ea36117c0cb6d108d30d5243b90001bf567 Mon Sep 17 00:00:00 2001 From: nxsre <32614138+nxsre@users.noreply.github.com> Date: Sat, 21 Oct 2023 09:19:36 -0500 Subject: [PATCH] Update config_file.go MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 解决配置中心标签 value 和 key 相同的问题 --- common/model/config_file.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/model/config_file.go b/common/model/config_file.go index 389f09980..1f0deefc9 100644 --- a/common/model/config_file.go +++ b/common/model/config_file.go @@ -427,7 +427,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