diff --git a/modules/user/api_create.go b/modules/user/api_create.go index 3751b04bb..8a610cbdd 100644 --- a/modules/user/api_create.go +++ b/modules/user/api_create.go @@ -70,7 +70,7 @@ func (this *apiComp) Create(session comm.IUserSession, req *pb.UserCreateReq) (e // return // } update := map[string]interface{}{ - //"name": req.NickName, //设置昵称 + // "name": req.NickName, //设置昵称 "created": true, //创角标识 "figure": req.Figure, //设置形象 "gender": req.Gender, //设置性别 @@ -95,9 +95,8 @@ func (this *apiComp) Create(session comm.IUserSession, req *pb.UserCreateReq) (e ) return } - if req.Figure != 0 { - tasks = append(tasks, comm.GetBuriedParam(comm.Rtype72, 1)) - } + + tasks = append(tasks, comm.GetBuriedParam(comm.Rtype72, 1)) session.SendMsg(string(this.module.GetType()), UserSubTypeCreate, &pb.UserCreateResp{ NickName: req.NickName, Figure: req.Figure, diff --git a/modules/user/api_login.go b/modules/user/api_login.go index 38423be76..6797a3cc2 100644 --- a/modules/user/api_login.go +++ b/modules/user/api_login.go @@ -72,8 +72,8 @@ func (this *apiComp) Login(session comm.IUserSession, req *pb.UserLoginReq) (err firstLogin = true expand = &pb.DBUserExpand{} - user.CurSkin = this.module.ModuleTools.GetGlobalConf().Initper.T - user.Skins = []string{user.CurSkin} + // user.CurSkin = this.module.ModuleTools.GetGlobalConf().Initper.T + // user.Skins = []string{user.CurSkin} } // 玩家是否封号 if user.Ban { @@ -146,6 +146,10 @@ func (this *apiComp) Login(session comm.IUserSession, req *pb.UserLoginReq) (err return } session.SetSession(session.GetIP(), session.GetSessionId(), session.GetServiecTag(), session.GetGatewayServiceId(), user.Uid) + if user.CurSkin == "" { + user.CurSkin = this.module.ModuleTools.GetGlobalConf().Initper.T + } + session.SendMsg(string(this.module.GetType()), UserSubTypeLogin, &pb.UserLoginResp{ Data: user, Ex: expand,