Testing and bugfixing

This commit is contained in:
2018-10-26 23:18:58 +11:00
parent 165d7526a3
commit 915a07dd62
7 changed files with 27 additions and 24 deletions

View File

@@ -6,10 +6,12 @@ let request = require("sync-request");
exports.LoadServerData = function(dataType, usersID = "") {
let response = request("GET", `${process.env.SERVER_ADDRESS}/getData.php?pk=${process.env.SERVER_PASS_KEY}&dataType=${dataType}&userid=${usersID}`);
// console.log(response.getBody());
return response.getBody();
}
exports.SendServerData = function(dataType, usersID = "", dataToSend="", dataToSend2 = ""){
let response = request("GET", `${process.env.SERVER_ADDRESS}/sendData.php?pk=${process.env.SERVER_PASS_KEY}&dataType=${dataType}&userid=${usersID}&dataToSend=${dataToSend}&dataToSend2=${dataToSend2}`);
// console.log(response.getBody());
return response.getBody();
}