优化日志
This commit is contained in:
parent
1a535d07ca
commit
c363d6e742
@ -691,7 +691,7 @@ func (this *Buried) updateAndCheckBuried(bconf *cfg.GameBuriedTypeData, bdata *p
|
|||||||
// 判断埋点数据的有效性
|
// 判断埋点数据的有效性
|
||||||
func (this *Buried) checkburied(buried *pb.BuriedParam, bconf *cfg.GameBuriedTypeData, conf *cfg.GameBuriedCondiData) (efficient bool) {
|
func (this *Buried) checkburied(buried *pb.BuriedParam, bconf *cfg.GameBuriedTypeData, conf *cfg.GameBuriedCondiData) (efficient bool) {
|
||||||
if !(len(buried.Filter) == len(conf.Filter) && len(bconf.Filter) == len(conf.Filter)) {
|
if !(len(buried.Filter) == len(conf.Filter) && len(bconf.Filter) == len(conf.Filter)) {
|
||||||
this.Error("校验埋点错误!", log.Field{Key: "buried", Value: buried}, log.Field{Key: "conf", Value: conf})
|
this.Debug("校验埋点错误!", log.Field{Key: "buried", Value: buried}, log.Field{Key: "conf", Value: conf})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
for i, v := range conf.Filter {
|
for i, v := range conf.Filter {
|
||||||
|
@ -178,7 +178,6 @@ func (this *Sociaty) Reddot(session comm.IUserSession, rid ...comm.ReddotType) (
|
|||||||
reddot = make(map[comm.ReddotType]*pb.ReddotItem)
|
reddot = make(map[comm.ReddotType]*pb.ReddotItem)
|
||||||
sociaty := this.modelSociaty.getUserSociaty(session.GetUserId())
|
sociaty := this.modelSociaty.getUserSociaty(session.GetUserId())
|
||||||
if sociaty == nil || sociaty.Id == "" {
|
if sociaty == nil || sociaty.Id == "" {
|
||||||
log.Warn("公会红点未获得公会信息", log.Field{Key: "uid", Value: session.GetUserId()})
|
|
||||||
for _, v := range rid {
|
for _, v := range rid {
|
||||||
reddot[v] = &pb.ReddotItem{
|
reddot[v] = &pb.ReddotItem{
|
||||||
Rid: int32(v),
|
Rid: int32(v),
|
||||||
|
Loading…
Reference in New Issue
Block a user