Add: ranking for app

This commit is contained in:
jisangs committed 2018-09-05 09:21:48 +09:00
1 parent 3a1be0744c
commit 3d4852c42c
7 files changed
+529 -19

No files matched your search

+20
View File
@@ -402,6 +402,26 @@ class DBConnectManager {
);
}
requestAppRanking(maestroID, appID, onSucceededListener, onFailedListener) {
let xhr = new XMLHttpRequest();
xhr.open("POST", this.phpPath + "server/record/app_ranking.php", true);
xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xhr.onreadystatechange = function() {
if(xhr.readyState == 4 && xhr.status == 200) {
let replyJSON = JSON.parse(xhr.responseText);
if(replyJSON != null)
onSucceededListener(replyJSON);
else
onFailedListener(replyJSON);
}
};
xhr.send(
"MaestroID=" + maestroID
+ "&AppID=" + appID
);
}
loadTempPlayerHistory(historyRecordManager) {