输出详细的报错信息
This commit is contained in:
parent
60e7d6e5ea
commit
fff5836c03
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user