创角不再校验昵称

This commit is contained in:
meixiongfeng 2023-11-14 18:54:59 +08:00
parent 30d611525f
commit 0217d097c5

View File

@ -62,19 +62,19 @@ func (this *apiComp) Create(session comm.IUserSession, req *pb.UserCreateReq) (e
}
//查询昵称是否重复
if ok := this.module.modelUser.NickNameIsExist(req.NickName); !ok {
errdata = &pb.ErrorData{
Code: pb.ErrorCode_UserNickNameExist,
Title: pb.ErrorCode_UserNickNameExist.ToString(),
}
return
}
// if ok := this.module.modelUser.NickNameIsExist(req.NickName); !ok {
// errdata = &pb.ErrorData{
// Code: pb.ErrorCode_UserNickNameExist,
// Title: pb.ErrorCode_UserNickNameExist.ToString(),
// }
// return
// }
update := map[string]interface{}{
"name": req.NickName, //设置昵称
"created": true, //创角标识
"figure": req.Figure, //设置形象
"gender": req.Gender, //设置性别
"ps": 0, //设置初始体力 调整未0 由策划初始表发放
//"name": req.NickName, //设置昵称
"created": true, //创角标识
"figure": req.Figure, //设置形象
"gender": req.Gender, //设置性别
"ps": 0, //设置初始体力 调整未0 由策划初始表发放
}
globalConf := this.module.globalConf
if req.Gender == 0 {