huangjiajun 1 tydzień temu
rodzic
commit
a72676ad65
2 zmienionych plików z 10 dodań i 2 usunięć
  1. +8
    -0
      consume/user_delete_consume.go
  2. +2
    -2
      go.mod

+ 8
- 0
consume/user_delete_consume.go Wyświetl plik

@@ -9,6 +9,7 @@ import (
db2 "code.fnuoos.com/EggPlanet/egg_models.git/src"
"code.fnuoos.com/EggPlanet/egg_models.git/src/model"
"code.fnuoos.com/EggPlanet/egg_system_rules.git"
"code.fnuoos.com/EggPlanet/egg_system_rules.git/rule"
"code.fnuoos.com/go_rely_warehouse/zyos_go_mq.git/rabbit"
"encoding/json"
"errors"
@@ -155,5 +156,12 @@ func handleUserDeleteConsume(backEg *xorm.Engine, ch *rabbit.Channel, msgData []
backEg.Insert(&UserRealNameAuth)
}
eg.Where("uid=?", msg.Uid).Delete(&model.UserRealNameAuth{})
var publicPlatoonUserRelation model.PublicPlatoonUserRelation
exist, err = eg.Where("uid=?", msg.Uid).Get(&publicPlatoonUserRelation)
if exist {
publicPlatoonUserRelation.Id = 0
backEg.Insert(&publicPlatoonUserRelation)
}
rule.DealPublicPlatoon(eg, utils2.StrToInt64(msg.Uid), "注销")
return nil
}

+ 2
- 2
go.mod Wyświetl plik

@@ -7,8 +7,8 @@ go 1.19
//replace code.fnuoos.com/EggPlanet/egg_system_rules.git => E:/company/Egg/egg_system_rules

require (
code.fnuoos.com/EggPlanet/egg_models.git v0.2.1-0.20241214062221-cde2ce240fa8
code.fnuoos.com/EggPlanet/egg_system_rules.git v0.0.4-0.20241214062309-291e3233ae28
code.fnuoos.com/EggPlanet/egg_models.git v0.2.1-0.20241214095356-fdac2df9537f
code.fnuoos.com/EggPlanet/egg_system_rules.git v0.0.4-0.20241214095427-b3f9e6ed2446
code.fnuoos.com/go_rely_warehouse/zyos_go_es.git v1.0.1-0.20241118083738-0f22da9ba0be
code.fnuoos.com/go_rely_warehouse/zyos_go_mq.git v0.0.5
github.com/boombuler/barcode v1.0.1


Ładowanie…
Anuluj
Zapisz