Browse Source

fix: update invite user count

master
shenjiachi 1 week ago
parent
commit
4814d68b61
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      consume/egg_canal_invite_user_nums_consume.go

+ 3
- 0
consume/egg_canal_invite_user_nums_consume.go View File

@@ -73,6 +73,9 @@ func handleEggCanalInviteUserNumsConsume(msg []byte) error {
// 2. 监听插入信息
if canalMsg.Type == md2.CanalMsgInsertSqlType {
for _, item := range canalMsg.Data {
if item.Level != "1" {
return nil
}
parentUid := item.ParentUid
id := fmt.Sprintf("%d%d_%s", year, week, parentUid)



Loading…
Cancel
Save