Quellcode durchsuchen

update es id

master
shenjiachi vor 1 Woche
Ursprung
Commit
6e0c47e5ea
3 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  1. +1
    -1
      consume/egg_canal_invite_user_nums_consume.go
  2. +1
    -1
      consume/egg_canal_person_add_activity_value_consume.go
  3. +1
    -1
      consume/egg_canal_violate_nums_consume.go

+ 1
- 1
consume/egg_canal_invite_user_nums_consume.go Datei anzeigen

@@ -71,7 +71,7 @@ func handleEggCanalInviteUserNumsConsume(msg []byte) error {
if canalMsg.Type == md2.CanalMsgInsertSqlType {
for _, item := range canalMsg.Data {
parentUid := item.ParentUid
id := fmt.Sprintf("%d%d-%s", year, week, parentUid)
id := fmt.Sprintf("%d%d_%s", year, week, parentUid)
fmt.Println("ESid:" + id + "=====================>")

// 新增拉新人数


+ 1
- 1
consume/egg_canal_person_add_activity_value_consume.go Datei anzeigen

@@ -80,7 +80,7 @@ func handleEggCanalPersonAddActivityValueConsume(msg []byte) error {
if canalMsg.Type == md2.CanalMsgInsertSqlType {
for _, item := range canalMsg.Data {
uid := item.Uid
id := fmt.Sprintf("%d%d-%s", year, week, uid)
id := fmt.Sprintf("%d%d_%s", year, week, uid)

if item.CoinId != utils2.IntToStr(personEggPointsCoinId) && item.Direction != "1" {
continue


+ 1
- 1
consume/egg_canal_violate_nums_consume.go Datei anzeigen

@@ -115,7 +115,7 @@ func handleEggCanalViolateNumsConsume(msg []byte) error {
continue
}
uid := item.Uid
id := fmt.Sprintf("%d%d-%s", 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)


Laden…
Abbrechen
Speichern