上传战斗校验失败异常
This commit is contained in:
parent
8a21c0e476
commit
7b0826724e
@ -46,7 +46,7 @@ func (this *apiComp) ChallengeReward(session comm.IUserSession, req *pb.ArenaCha
|
|||||||
errdata = &pb.ErrorData{
|
errdata = &pb.ErrorData{
|
||||||
Code: pb.ErrorCode_BattleValidationFailed,
|
Code: pb.ErrorCode_BattleValidationFailed,
|
||||||
Title: pb.ErrorCode_BattleValidationFailed.ToString(),
|
Title: pb.ErrorCode_BattleValidationFailed.ToString(),
|
||||||
Message: err.Error(),
|
Message: "CheckBattleReport check fail",
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -263,7 +263,9 @@ func (this *Chat) SendSysChatToWorld(ctype comm.ChatSystemType, appenddata inter
|
|||||||
AppendInt: int64(st.Key),
|
AppendInt: int64(st.Key),
|
||||||
AppendStrs: agrs,
|
AppendStrs: agrs,
|
||||||
}
|
}
|
||||||
if ctype == comm.ChatSystem3 { //装备分享
|
|
||||||
|
switch ctype {
|
||||||
|
case comm.ChatSystem3:
|
||||||
msg.Ctype = pb.ChatType_Share
|
msg.Ctype = pb.ChatType_Share
|
||||||
if appenddata != nil {
|
if appenddata != nil {
|
||||||
if jsonStr, err = json.Marshal(appenddata); err != nil {
|
if jsonStr, err = json.Marshal(appenddata); err != nil {
|
||||||
@ -280,6 +282,23 @@ func (this *Chat) SendSysChatToWorld(ctype comm.ChatSystemType, appenddata inter
|
|||||||
msg.AppendStr = string(jsonStr)
|
msg.AppendStr = string(jsonStr)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
case comm.ChatSystem7, comm.ChatSystem8, comm.ChatSystem9, comm.ChatSystem10, comm.ChatSystem11:
|
||||||
|
msg.Ctype = pb.ChatType_Share
|
||||||
|
if appenddata != nil {
|
||||||
|
if jsonStr, err = json.Marshal(appenddata); err != nil {
|
||||||
|
this.Errorf("err:%v", err)
|
||||||
|
} else {
|
||||||
|
data := map[string]interface{}{
|
||||||
|
agrs[1]: map[string]interface{}{
|
||||||
|
"key": agrs[1],
|
||||||
|
"appendStr": string(jsonStr),
|
||||||
|
"itemType": pb.ChatType_HeroShare,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
jsonStr, _ = json.Marshal(data)
|
||||||
|
msg.AppendStr = string(jsonStr)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if this.IsCross() {
|
if this.IsCross() {
|
||||||
|
@ -96,7 +96,7 @@ func (this *apiComp) StrengthenUplv(session comm.IUserSession, req *pb.HeroStren
|
|||||||
|
|
||||||
//英雄升级 【玩家名称】已将【英雄名称】培养至60级!
|
//英雄升级 【玩家名称】已将【英雄名称】培养至60级!
|
||||||
if user := this.module.ModuleUser.GetUser(session.GetUserId()); user != nil {
|
if user := this.module.ModuleUser.GetUser(session.GetUserId()); user != nil {
|
||||||
this.chat.SendSysChatToWorld(comm.ChatSystem7, nil, _hero.Lv, 0, user.Name, _hero.HeroID)
|
this.chat.SendSysChatToWorld(comm.ChatSystem7, _hero, _hero.Lv, 0, user.Name, _hero.HeroID)
|
||||||
} else {
|
} else {
|
||||||
this.module.Errorf("no found userdata uid:%s", session.GetUserId())
|
this.module.Errorf("no found userdata uid:%s", session.GetUserId())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user