Add: add license score

This commit is contained in:
2018-12-13 11:56:51 +09:00
parent 5186f21421
commit 7b0664f8d5
5 changed files with 137 additions and 18 deletions
+17
View File
@@ -513,6 +513,23 @@ DBConnectManager.prototype.requestLicenseScore = function(maestroID, playerID, o
xhr.send("MaestroID=" + maestroID + "&PlayerID=" + playerID);
}
DBConnectManager.prototype.addLicenseScore = function(maestroID, playerID, subjectName, score, onSucceededListener, onFailedListener) {
var xhr = new XMLHttpRequest();
xhr.open("POST", this.phpPath + "server/license_timer/add_license_score.php", true);
xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xhr.onreadystatechange = function() {
if(xhr.readyState == 4 && xhr.status == 200) {
var replyJSON = JSON.parse(xhr.responseText);
if(replyJSON != null)
onSucceededListener(replyJSON);
else
onFailedListener(replyJSON);
}
};
xhr.send("MaestroID=" + maestroID + "&PlayerID=" + playerID + "&SubjectName=" + subjectName + "&Score=" + score);
}
DBConnectManager.prototype.loadTempPlayerHistory = function(historyRecordManager) {