登录验证
This commit is contained in:
parent
a45d950e76
commit
444b189089
@ -155,11 +155,9 @@ window.vm = {
|
||||
};
|
||||
|
||||
|
||||
|
||||
window.onload = function(){
|
||||
function startGame(){
|
||||
var gameId = getParameter("id")
|
||||
var path = "http://h5games-al.kingsome.cn/emulator-static/roms/" + gameId + ".nes"
|
||||
// var path = "http://192.168.100.232:7008/roms/" + gameId + ".nes"
|
||||
var path = "../roms/" + gameId + ".nes"
|
||||
nes_load_url("screen", path)
|
||||
vm.initCtrl()
|
||||
|
||||
@ -199,9 +197,36 @@ window.onload = function(){
|
||||
},1000/60)
|
||||
|
||||
}
|
||||
}
|
||||
function checkSession_id(res){
|
||||
try{
|
||||
if(JSON.parse(res.target.response).errcode==0){
|
||||
startGame();
|
||||
}
|
||||
}catch(e){}
|
||||
}
|
||||
window.onload = function(){
|
||||
var account_id = getParameter("account_id")
|
||||
var session_id = getParameter("session_id")
|
||||
var url;
|
||||
if(getParameter("version")==="product"){
|
||||
url = "https://login.kingsome.cn/webapp/index.php?c=Login&a=sessionAuth"
|
||||
}
|
||||
else{
|
||||
url = "https://login-test.kingsome.cn/webapp/index.php?c=Login&a=sessionAuth"
|
||||
}
|
||||
url += "&account_id=";
|
||||
url += account_id;
|
||||
url += "&session_id=";
|
||||
url += session_id;
|
||||
|
||||
var ajax = new XMLHttpRequest();
|
||||
ajax.onload = checkSession_id;
|
||||
ajax.open("GET", url, true);
|
||||
ajax.send(null);
|
||||
|
||||
}
|
||||
|
||||
var script_processor=null
|
||||
var audio_ctx = null
|
||||
function initAudioEvent() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user