From fff5836c033976f14d455a92d0f21d0daf07b716 Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Sun, 25 Jun 2023 11:31:42 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BE=93=E5=87=BA=E8=AF=A6=E7=BB=86=E7=9A=84?= =?UTF-8?q?=E6=8A=A5=E9=94=99=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/modulebase.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/modulebase.go b/modules/modulebase.go index 6bfdfd2d4..5306295a8 100644 --- a/modules/modulebase.go +++ b/modules/modulebase.go @@ -368,7 +368,7 @@ func (this *ModuleBase) ConsumeRes(session comm.IUserSession, res []*cfg.Gameatn case comm.ItemType: items[v.T] -= v.N default: - this.Errorf("not found res type") // 找不到资源类型 + this.Error("not found res type", log.Field{Key: "Type", Value: v.A}) // 找不到资源类型 } } // 校验数量 @@ -467,7 +467,7 @@ func (this *ModuleBase) DispenseRes(session comm.IUserSession, res []*cfg.Gameat case comm.PerType: per[v.T] = 1 default: - this.Errorf("not found res type") // 找不到资源类型 + this.Error("not found res type", log.Field{Key: "Type", Value: v.A}) // 找不到资源类型 } } @@ -667,7 +667,7 @@ func (this *ModuleBase) DispenseAtno(session comm.IUserSession, res []*cfg.Gamea case comm.VipType: vip[v.T] += v.N default: - this.Error("not found res type") // 找不到资源类型 + this.Error("not found res type", log.Field{Key: "Type", Value: v.A}) // 找不到资源类型 } } @@ -739,7 +739,7 @@ func (this *ModuleBase) FormatRes(res []*cfg.Gameatn) (ret []*cfg.Gameatn) { case comm.ItemType: items[v.T] += v.N default: - this.Errorf("not found res type") // 找不到资源类型 + this.Error("not found res type", log.Field{Key: "Type", Value: v.A}) // 找不到资源类型 } } for k, v := range attrs {