尝试给上报到elasticsearch的文档加_id

This commit is contained in:
zhangkun 2024-12-04 11:45:45 +08:00
parent 7aadf4b0b6
commit 04a441d08c
2 changed files with 1 additions and 1 deletions

View File

@ -286,7 +286,7 @@ func (core *Core) SaveUniKey(period string, keyName string, extt time.Duration,
}
did := cl.InstId + cl.Period + cl.Data[0].(string)
cl.Id = did
cl.Id = hashString(did)
cl.ToStruct(core)
cd, _ := json.Marshal(cl)
wg := WriteLog{

BIN
tunas

Binary file not shown.