meepen/salien-bot

No ajax fail function in CServerInterface.prototype.LeaveGameInstance

Closed this issue · 0 comments

EoD commented

From the log

2018-06-24T11:16:48.275Z: url https://community.steam-api.com/ITerritoryControlMinigameService/GetPlayerInfo/v0001/ requested
2018-06-24T11:16:48.564Z: url https://community.steam-api.com/IMiniGameService/LeaveGame/v0001/ requested
2018-06-24T11:16:48.833Z: Error: no ajax fail function https://community.steam-api.com/IMiniGameService/LeaveGame/v0001/
2018-06-24T11:16:48.833Z: url https://community.steam-api.com/ITerritoryControlMinigameService/GetPlayerInfo/v0001/ requested

CServerInterface.prototype.LeaveGameInstance = function( instanceid, callback, error )
{
var instance = this;
var rgParams = {
access_token: instance.m_WebAPI.m_strOAuth2Token,
gameid: instanceid,
};
$J.ajax({
url: this.m_WebAPI.BuildURL( 'IMiniGameService', 'LeaveGame', true ),
method: 'POST',
data: rgParams,
}).success( function( results, textStatus, request ) {
if ( request.getResponseHeader( 'x-eresult' ) == 1 )
{
callback( results )
}
else
{
error();
}
});