From a72676ad651f536e7a238e72337f80e3aa09dbe6 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Sat, 14 Dec 2024 18:10:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=87=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- consume/user_delete_consume.go | 8 ++++++++ go.mod | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/consume/user_delete_consume.go b/consume/user_delete_consume.go index 3d25c55..627a1ce 100644 --- a/consume/user_delete_consume.go +++ b/consume/user_delete_consume.go @@ -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 } diff --git a/go.mod b/go.mod index 84f2b8a..884aea7 100644 --- a/go.mod +++ b/go.mod @@ -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