From 2a2f482a592a96b4240d4dadd1cc6e46e666954b Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Wed, 16 Aug 2023 16:58:56 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=94=A8=E6=88=B7=E5=88=9D?= =?UTF-8?q?=E5=A7=8B=E4=BD=93=E5=8A=9B=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/user/api_create.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/user/api_create.go b/modules/user/api_create.go index 0e6422fe4..ed73d17b0 100644 --- a/modules/user/api_create.go +++ b/modules/user/api_create.go @@ -66,18 +66,18 @@ func (this *apiComp) Create(session comm.IUserSession, req *pb.UserCreateReq) (e } //初始体力 - var ps int32 - gpd := this.module.configure.GetPlayerlvConf(self.Lv) - if gpd != nil { - ps = gpd.PsCeiling - } + // var ps int32 + // gpd := this.module.configure.GetPlayerlvConf(self.Lv) + // if gpd != nil { + // ps = gpd.PsCeiling + // } update := map[string]interface{}{ "name": req.NickName, //设置昵称 "created": true, //创角标识 "figure": req.Figure, //设置形象 "gender": req.Gender, //设置性别 - "ps": ps, //设置初始体力 + "ps": 0, //设置初始体力 调整未0 由策划初始表发放 "caravanlv": 1, }