|
|
@@ -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 |
|
|
|
} |