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 {