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

This commit is contained in:
zhangkun 2024-12-03 23:33:52 +08:00
parent 95997cd79d
commit b76a23b9d1

View File

@ -180,7 +180,7 @@ func hashString(input string) string {
// 转换为十六进制字符串
hashHex := hex.EncodeToString(hash[:])
// 返回前20位
return hashHex[:20]
return hashHex[:23]
}
func (cl *Candle) ToStruct(core *Core) error {