添加创角事件
This commit is contained in:
parent
8252162014
commit
3dbdfdf8a7
@ -9,6 +9,7 @@ import (
|
|||||||
"go_dreamfactory/utils"
|
"go_dreamfactory/utils"
|
||||||
|
|
||||||
"go_dreamfactory/lego/core"
|
"go_dreamfactory/lego/core"
|
||||||
|
"go_dreamfactory/lego/sys/event"
|
||||||
"go_dreamfactory/lego/sys/log"
|
"go_dreamfactory/lego/sys/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -38,6 +39,7 @@ func (this *UserComp) Create(ctx context.Context, session comm.IUserSession, req
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
log.Errorf("cache update err")
|
log.Errorf("cache update err")
|
||||||
}
|
}
|
||||||
|
event.RegisterGO(comm.Event_CreateUser, session.GetUserId())
|
||||||
session.SendMsg("user", "create", pb.ErrorCode_Success, &pb.UserCreateRsp{})
|
session.SendMsg("user", "create", pb.ErrorCode_Success, &pb.UserCreateRsp{})
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user