创角不再校验昵称

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 { // if ok := this.module.modelUser.NickNameIsExist(req.NickName); !ok {
errdata = &pb.ErrorData{ // errdata = &pb.ErrorData{
Code: pb.ErrorCode_UserNickNameExist, // Code: pb.ErrorCode_UserNickNameExist,
Title: pb.ErrorCode_UserNickNameExist.ToString(), // Title: pb.ErrorCode_UserNickNameExist.ToString(),
} // }
return // return
} // }
update := map[string]interface{}{ update := map[string]interface{}{
"name": req.NickName, //设置昵称 //"name": req.NickName, //设置昵称
"created": true, //创角标识 "created": true, //创角标识
"figure": req.Figure, //设置形象 "figure": req.Figure, //设置形象
"gender": req.Gender, //设置性别 "gender": req.Gender, //设置性别
"ps": 0, //设置初始体力 调整未0 由策划初始表发放 "ps": 0, //设置初始体力 调整未0 由策划初始表发放
} }
globalConf := this.module.globalConf globalConf := this.module.globalConf
if req.Gender == 0 { if req.Gender == 0 {