有错误码不再派发

This commit is contained in:
sin365 2025-11-04 14:41:48 +08:00
parent c6d6d45d90
commit 3d9bfe4493
2 changed files with 9 additions and 3 deletions

View File

@ -63,9 +63,9 @@ namespace AxibugEmuOnline.Client.Manager
App.network.SendToServer((int)CommandID.CmdGamescreenImgUpload, ProtoBufHelper.Serizlize(req));
}
private void RecvGamescreenImgUpload(byte[] obj)
private void RecvGamescreenImgUpload(byte[] data)
{
OverlayManager.PopTip("登录成功");
OverlayManager.PopTip("封面图上传成功");
}
}
}

View File

@ -163,16 +163,22 @@ namespace AxibugEmuOnline.Client.Network
case ErrorCode.ErrorRomDontHadStar:
errMsg = "并没有收藏";
break;
case ErrorCode.ErrorRomFailCoverimg:
errMsg = "处理游戏截图失败";
break;
case ErrorCode.ErrorDefaul:
case ErrorCode.ErrorOk:
default:
errMsg = err.ToString();
break;
}
OverlayManager.PopTip("错误:"+ errMsg);
App.log.Error("错误:" + errMsg);
}
//如果报错,则不往前继续推进
if (err > ErrorCode.ErrorOk)
return;
List<Delegate> eventList = GetNetEventDicList(cmd);
if (eventList != null)
{