mirror of
https://github.com/jie65535/GrasscutterCommandGenerator.git
synced 2025-10-20 19:39:47 +08:00
Throw ping exception
This commit is contained in:
@@ -46,15 +46,15 @@ namespace GrasscutterTools.OpenCommand
|
||||
|
||||
public async Task<bool> Ping()
|
||||
{
|
||||
try
|
||||
{
|
||||
//try
|
||||
//{
|
||||
var response = await DoRequest("ping");
|
||||
return response.RetCode == 200;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
//}
|
||||
//catch (Exception)
|
||||
//{
|
||||
// return false;
|
||||
//}
|
||||
}
|
||||
|
||||
public async Task SendCode(int playerId)
|
||||
|
Reference in New Issue
Block a user