Skip to content

Instantly share code, notes, and snippets.

@typcn
Last active July 19, 2017 20:31
Show Gist options
  • Save typcn/77e1b74eb2cc38c5fb5657eb36b386e4 to your computer and use it in GitHub Desktop.
Save typcn/77e1b74eb2cc38c5fb5657eb36b386e4 to your computer and use it in GitHub Desktop.
Umetrip OneSecond Activity Cheat Source
// Open: http://www.umetrip.com/activity/second/second.html?userId=YourUserId&issue=9
// Use packet capture to get UserID And Token
function doStart() {
$.ajax({
url: storeUrl + "/UmeStore/OneSecond/oneSecondStart.do?userId=YourUserID&token=YourToken&issue=9",
contentType: "application/x-www-form-urlencoded",
dataType: "json",
cache: !1,
timeout: 5e4,
success: function(t) {
setTimeout(doComplete, 960); // Adjust this based on your latency
}
})
}
function doComplete() {
$.ajax({
url: storeUrl + "/UmeStore/OneSecond/getOneSecondResult.do?userId=YourUserID&token=YourToken&issue=9",
contentType: "application/x-www-form-urlencoded",
dataType: "json",
cache: !1,
timeout: 5e4,
success: function(t) {
console.log(t);
}
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment