Update
This commit is contained in:
ALEXTANG
2023-07-13 23:54:38 +08:00
parent 1382db8c61
commit 493172a925
9 changed files with 109 additions and 36 deletions

View File

@@ -0,0 +1,22 @@
using TEngine.Core.Network;
namespace GameLogic
{
public class NetworkUtils
{
public static bool CheckError(IResponse response)
{
bool hasError = false;
if (response == null)
{
var networkError = "NetWork Response Error";
hasError = true;
}
else
{
hasError = response.ErrorCode != 0;
}
return hasError;
}
}
}