添加创角事件

This commit is contained in:
zhaocy 2022-06-08 17:13:56 +08:00
parent 8252162014
commit 3dbdfdf8a7

View File

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