dengbiao 2 settimane fa
parent
commit
72608c07dd
2 ha cambiato i file con 17 aggiunte e 2 eliminazioni
  1. +15
    -0
      app/hdl/hdl_login.go
  2. +2
    -2
      go.mod

+ 15
- 0
app/hdl/hdl_login.go Vedi File

@@ -514,6 +514,21 @@ func commReq(c *gin.Context, req md.RegisterReq) {
return
}
if parentUid > 0 {
initLV := 1
ur := new(model.UserRelate)
ur.ParentUid = parentUid
ur.Uid = user.Id
ur.Level = initLV
ur.InviteTime = time.Now().Format("2006-01-02 15:04:05")

userRelateDb := implement.NewUserRelateDb(db.Db)
_, err = userRelateDb.UserRelateInsert(ur)
if err != nil {
e.OutErr(c, e.ERR_DB_ORM, err)
return
}
// 插入多级关联
go svc.RoutineMultiRelate(ur.ParentUid, ur.Uid, initLV)
//TODO::推入mq异步处理
ch, err := rabbit.Cfg.Pool.GetChannel()
if err != nil {


+ 2
- 2
go.mod Vedi File

@@ -33,8 +33,8 @@ require (
)

require (
code.fnuoos.com/EggPlanet/egg_models.git v0.2.1-0.20241216083317-8f7f975c0482
code.fnuoos.com/EggPlanet/egg_system_rules.git v0.0.4-0.20241217120130-75b84c5f7580
code.fnuoos.com/EggPlanet/egg_models.git v0.2.1-0.20241217110120-62a0f203ce90
code.fnuoos.com/EggPlanet/egg_system_rules.git v0.0.4-0.20241217084154-72a590107d63
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/aliyun/aliyun-oss-go-sdk v3.0.2+incompatible


Caricamento…
Annulla
Salva