|
|
@@ -85,7 +85,7 @@ func handleEggCanalViolateNumsConsume(msg []byte) error { |
|
|
|
continue |
|
|
|
} |
|
|
|
uid := item.Uid |
|
|
|
id := fmt.Sprintf("%d%d-%d", year, week, uid) |
|
|
|
id := fmt.Sprintf("%d%d-%s", year, week, uid) |
|
|
|
|
|
|
|
// 2.2. 增加违规次数记录 |
|
|
|
script := elastic.NewScript("ctx._source.violate_nums += params.inc").Param("inc", 1) |
|
|
@@ -115,7 +115,7 @@ func handleEggCanalViolateNumsConsume(msg []byte) error { |
|
|
|
continue |
|
|
|
} |
|
|
|
uid := item.Uid |
|
|
|
id := fmt.Sprintf("%d%d-%d", year, week, uid) |
|
|
|
id := fmt.Sprintf("%d%d-%s", year, week, uid) |
|
|
|
|
|
|
|
// 3.2 减少违规次数记录 |
|
|
|
script := elastic.NewScript("ctx._source.violate_nums -= params.dec").Param("dec", 1) |
|
|
|