Content:
Fixed refund not working properly in some regions and in Garena servers (#51)
More info:
- [GET]
/riotclient/get_region_locale
endpoint responds differently on Garena than the other servers.
On Garena servers webRegion
field seems to be empty.
- Some servers have a final number in the region field (e.g.
LA1
), that number is a part of the URL required for making calls to the store endpoints (e.g. lan.store.leagueoflegends.com does not works but instead la1.store.leagueoflegends.com works fine).
Then take the value of region
instead of webRegion
should be the solution to the problem.
I tested the change on various server, it seems to work without any problem.
Response examples:
- The
region
and webRegion
fields are equals and not empty:
{
"locale" : "en_US",
"region" : "NA",
"webLanguage" : "en",
"webRegion" : "na"
}
{
"locale" : "it_IT",
"region" : "EUW",
"webLanguage" : "it",
"webRegion" : "euw"
}
{
"locale" : "tr_TR",
"region" : "TR",
"webLanguage" : "tr",
"webRegion" : "tr"
}
- The
region
and webRegion
fields are different (region
field with final number) and not empty:
{
"locale" : "es_MX",
"region" : "LA1",
"webLanguage" : "es",
"webRegion" : "lan"
}
webRegion
field is empty (Garena):
{
"locale" : "en_SG",
"region" : "SG",
"webLanguage" : "en",
"webRegion" : ""
}