From fcb15060c46d5e552b324710d6c2a6e3a191172d Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Thu, 2 Mar 2023 18:05:03 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E5=A4=8D=E8=8B=B1=E9=9B=84=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/hero/module.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/hero/module.go b/modules/hero/module.go index e982e1765..c8c8d73b6 100644 --- a/modules/hero/module.go +++ b/modules/hero/module.go @@ -101,7 +101,10 @@ func (this *Hero) createRepeatHero(session comm.IUserSession, heroCfgId string, return } - code = pb.ErrorCode_HeroCreate + if err != nil { + code = pb.ErrorCode_HeroCreate + } + return }