From d4d612aef8e41a92370bb6b59dfd620d1d7c8d0f Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Wed, 21 Feb 2024 17:53:17 +0800 Subject: [PATCH] =?UTF-8?q?=E8=99=9A=E6=8B=9F=E7=AD=89=E7=BA=A7=E8=8B=B1?= =?UTF-8?q?=E9=9B=84=20=E6=9E=84=E5=BB=BA=E5=88=9D=E5=A7=8B=E5=8C=96?= =?UTF-8?q?=E5=B1=9E=E6=80=A7=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/island/api_buy.go | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/modules/island/api_buy.go b/modules/island/api_buy.go index 784834261..8366eea1d 100644 --- a/modules/island/api_buy.go +++ b/modules/island/api_buy.go @@ -100,14 +100,17 @@ func (this *apiComp) Buy(session comm.IUserSession, req *pb.IsLandBuyReq) (errda } if hero == nil { hero = &pb.DBHero{ - Id: primitive.NewObjectID().Hex(), - Uid: session.GetUserId(), - HeroID: conf.Hid, - Star: conf.Star, - Lv: conf.Star * 10, - Property: make(map[int32]int32), - AddProperty: make(map[int32]int32), - JuexProperty: make(map[int32]int32), + Id: primitive.NewObjectID().Hex(), + Uid: session.GetUserId(), + HeroID: conf.Hid, + Star: conf.Star, + Lv: conf.Star * 10, + Property: make(map[int32]int32), + AddProperty: make(map[int32]int32), + JuexProperty: make(map[int32]int32), + TalentProperty: make(map[int32]int32), + HoroscopeProperty: make(map[int32]int32), + Fetters: make(map[int32]int32), } this.module.hero.GetVirtualHero(hero, hero.Lv) this.module.modelhero.addheros(session.GetUserId(), hero)