Browse Source

fix: update violate_nums struct

master
shenjiachi 1 week ago
parent
commit
32cd97e1ae
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      consume/egg_canal_violate_nums_consume.go

+ 1
- 1
consume/egg_canal_violate_nums_consume.go View File

@@ -102,7 +102,7 @@ func handleEggCanalViolateNumsConsume(msg []byte) error {

// 2.3 更新违规记录
updateMap := make(map[string]interface{})
updateMap["violate_nums"] = res[0]["total"]
updateMap["violate_nums"] = utils2.StrToInt(res[0]["total"])
updateDocRet, err := es.UpdateDoc(index, id, updateMap)
if err != nil {
if strings.Contains(err.Error(), "elastic: Error 404 (Not Found)") {


Loading…
Cancel
Save