From 1a560f9ab7b0e19cd1c8971df80b568f2fd202af Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Tue, 30 May 2023 17:47:21 +0800 Subject: [PATCH] =?UTF-8?q?map=20=E5=88=9D=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/hero/api_awaken.go | 1 + modules/hunting/model_hunting.go | 1 + modules/viking/model_viking.go | 1 + 3 files changed, 3 insertions(+) diff --git a/modules/hero/api_awaken.go b/modules/hero/api_awaken.go index dc97a32bd..2e54eaf39 100644 --- a/modules/hero/api_awaken.go +++ b/modules/hero/api_awaken.go @@ -41,6 +41,7 @@ func (this *apiComp) Awaken(session comm.IUserSession, req *pb.HeroAwakenReq) (c awakenData, err = this.module.configure.GetHeroAwakenConfig(_hero.HeroID, _hero.JuexingLv+1) if err != nil { + data = &pb.ErrorData{} code = pb.ErrorCode_ConfigNoFound data.Message = err.Error() return diff --git a/modules/hunting/model_hunting.go b/modules/hunting/model_hunting.go index 04672c07f..699f76c9a 100644 --- a/modules/hunting/model_hunting.go +++ b/modules/hunting/model_hunting.go @@ -42,6 +42,7 @@ func (this *modelHunting) getHuntingList(uid string) (result *pb.DBHunting, err Uid: uid, Boss: make(map[int32]int32), BossTime: make(map[string]int32), + Ps: map[int32]int32{}, } this.Add(uid, result) diff --git a/modules/viking/model_viking.go b/modules/viking/model_viking.go index 792e46520..140dda568 100644 --- a/modules/viking/model_viking.go +++ b/modules/viking/model_viking.go @@ -37,6 +37,7 @@ func (this *modelViking) getVikingList(uid string) (result *pb.DBViking, err err Uid: uid, Boss: make(map[int32]int32), BossTime: make(map[string]int32), + Ps: make(map[int32]int32), } err = nil this.module.modelViking.Add(uid, result)