Files
TEngine/Assets/GameScripts/HotFix/GameLogic/DataCenter/NetworkUtils.cs
ALEXTANG 493172a925 Update
Update
2023-07-13 23:54:38 +08:00

22 lines
492 B
C#

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;
}
}
}