Gm 创角
This commit is contained in:
parent
675c1b44c9
commit
42d521e01f
@ -801,6 +801,29 @@ func (this *GM) CreateCmd(session comm.IUserSession, cmd string) (errdata *pb.Er
|
||||
log.Field{Key: "0", Value: datas[0]},
|
||||
)
|
||||
|
||||
} else if len(datas) == 2 && (datas[0] == "create") {
|
||||
var (
|
||||
err error
|
||||
)
|
||||
|
||||
module1, err := this.service.GetModule(comm.ModuleUser)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
req := &pb.UserCreateReq{
|
||||
NickName: datas[1],
|
||||
Figure: 16010101,
|
||||
Gender: 1,
|
||||
}
|
||||
if errdata = module1.(comm.IUser).GMCreatePlayer(session, req); errdata != nil {
|
||||
return
|
||||
}
|
||||
|
||||
this.Debug("使用bingo命令:uid = %s ",
|
||||
log.Field{Key: "uid", Value: session.GetUserId()},
|
||||
log.Field{Key: "0", Value: datas[0]},
|
||||
)
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user