|
|
@@ -83,7 +83,7 @@ func handleEggRecordActiveDataConsume(msgData []byte) error { |
|
|
|
// 3.添加团队活跃次数 |
|
|
|
if userRelate != nil { |
|
|
|
parentUid := userRelate.ParentUid |
|
|
|
parentEsId := fmt.Sprintf("%d%d-%d", year, week, parentUid) |
|
|
|
parentEsId := fmt.Sprintf("%d%d_%d", year, week, parentUid) |
|
|
|
// 增加团队活跃次数记录 |
|
|
|
script := elastic.NewScript("ctx._source.team_activity_nums += params.inc").Param("inc", 1) |
|
|
|
_, err = es.EsClient.Update(). |
|
|
@@ -97,7 +97,7 @@ func handleEggRecordActiveDataConsume(msgData []byte) error { |
|
|
|
} |
|
|
|
|
|
|
|
// 4.更新签到次数 |
|
|
|
esId := fmt.Sprintf("%d%d-%d", year, week, msg.Uid) |
|
|
|
esId := fmt.Sprintf("%d%d_%d", year, week, msg.Uid) |
|
|
|
script := elastic.NewScript(` |
|
|
|
ctx._source.sign_in_nums += params.signInInc; |
|
|
|
`).Param("signInInc", 1) |
|
|
|