浏览代码

注销处罚

master
huangjiajun 1周前
父节点
当前提交
9d8d04dfbd
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. +2
    -1
      consume/user_delete_consume.go
  2. +1
    -1
      go.mod

+ 2
- 1
consume/user_delete_consume.go 查看文件

@@ -91,8 +91,9 @@ func handleUserDeleteConsume(backEg *xorm.Engine, ch *rabbit.Channel, msgData []
backEg.Insert(&user)
user.Phone = ""
user.State = 2
user.ParentUid = 0
user.Nickname = "注销用户"
db.Db.Where("id=?", user.Id).Cols("state,phone,nickname").Update(&user)
db.Db.Where("id=?", user.Id).Cols("state,phone,nickname,parent_uid").Update(&user)
}
//2.用户关系链
//查出所有下级


+ 1
- 1
go.mod 查看文件

@@ -7,7 +7,7 @@ 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.20241224090637-89a57f7fbb1e
code.fnuoos.com/EggPlanet/egg_models.git v0.2.1-0.20241229040905-b840e6fb411a
code.fnuoos.com/EggPlanet/egg_system_rules.git v0.0.4-0.20241227092843-802cf07ae61c
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


正在加载...
取消
保存