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